-
public abstract class SerializerFactory<T extends Serializer<?>>A factory that can create specialized serializers for types that match the defined pattern. A type matches the pattern if
pattern.isAssignableFrom(theType). When deciding the factory to use, the Prism object selects the one with the most TypeMirror.specificity pattern. In the case of equal specificity it chooses the last one registered, in order to support overriding.
-
-
Constructor Summary
Constructors Constructor Description SerializerFactory(Prism<T> prism, TypeMirror pattern, Function1<TypeMirror, Boolean> predicate)
-
Method Summary
Modifier and Type Method Description final Prism<T>getPrism()final TypeMirrorgetPattern()final Function1<TypeMirror, Boolean>getPredicate()abstract Tcreate(TypeMirror mirror)-
-
Method Detail
-
getPattern
final TypeMirror getPattern()
-
getPredicate
final Function1<TypeMirror, Boolean> getPredicate()
-
-
-
-