Package de.javakaffee.kryoserializers
Class FieldAnnotationAwareSerializer.Factory
- java.lang.Object
-
- de.javakaffee.kryoserializers.FieldAnnotationAwareSerializer.Factory
-
- All Implemented Interfaces:
com.esotericsoftware.kryo.SerializerFactory<FieldAnnotationAwareSerializer<Object>>
- Enclosing class:
- FieldAnnotationAwareSerializer<T>
public static class FieldAnnotationAwareSerializer.Factory extends Object implements com.esotericsoftware.kryo.SerializerFactory<FieldAnnotationAwareSerializer<Object>>
A factory for creating instances ofFieldAnnotationAwareSerializer.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.esotericsoftware.kryo.SerializerFactory
com.esotericsoftware.kryo.SerializerFactory.BaseSerializerFactory<T extends com.esotericsoftware.kryo.Serializer>, com.esotericsoftware.kryo.SerializerFactory.CompatibleFieldSerializerFactory, com.esotericsoftware.kryo.SerializerFactory.FieldSerializerFactory, com.esotericsoftware.kryo.SerializerFactory.ReflectionSerializerFactory<T extends com.esotericsoftware.kryo.Serializer>, com.esotericsoftware.kryo.SerializerFactory.SingletonSerializerFactory<T extends com.esotericsoftware.kryo.Serializer>, com.esotericsoftware.kryo.SerializerFactory.TaggedFieldSerializerFactory, com.esotericsoftware.kryo.SerializerFactory.VersionFieldSerializerFactory
-
-
Constructor Summary
Constructors Constructor Description Factory(Collection<Class<? extends Annotation>> marked, boolean disregarding)Creates a new factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSupported(Class type)FieldAnnotationAwareSerializer<Object>newSerializer(com.esotericsoftware.kryo.Kryo kryo, Class type)
-
-
-
Constructor Detail
-
Factory
public Factory(Collection<Class<? extends Annotation>> marked, boolean disregarding)
Creates a new factory. SeeFieldAnnotationAwareSerializer( com.esotericsoftware.kryo.Kryo, Class, java.util.Collection, boolean)for additional information on the constructor parameters.- Parameters:
marked- The annotations that will be considered of the resulting converter.disregarding- Iftrue, the serializer will ignore all annotated fields, if set tofalseit will exclusively look at annotated fields.
-
-
Method Detail
-
isSupported
public boolean isSupported(Class type)
- Specified by:
isSupportedin interfacecom.esotericsoftware.kryo.SerializerFactory<FieldAnnotationAwareSerializer<Object>>
-
newSerializer
public FieldAnnotationAwareSerializer<Object> newSerializer(com.esotericsoftware.kryo.Kryo kryo, Class type)
- Specified by:
newSerializerin interfacecom.esotericsoftware.kryo.SerializerFactory<FieldAnnotationAwareSerializer<Object>>
-
-