Package se.l4.commons.serialization
Class DefaultSerializerCollection
java.lang.Object
se.l4.commons.serialization.AbstractSerializerCollection
se.l4.commons.serialization.DefaultSerializerCollection
- All Implemented Interfaces:
SerializerCollection
public class DefaultSerializerCollection extends AbstractSerializerCollection
Default implementation of
SerializerCollection.- Author:
- Andreas Holstenson
-
Constructor Summary
Constructors Constructor Description DefaultSerializerCollection()DefaultSerializerCollection(InstanceFactory instanceFactory) -
Method Summary
Modifier and Type Method Description <T> SerializerCollectionbind(Class<T> type, SerializerResolver<? extends T> resolver)Bind a given type to the specified resolver.InstanceFactorygetInstanceFactory()Get the current instance factory.SerializerResolver<?>getResolver(Class<?> type)Get the resolver this collection would use to resolve a serializer for the given type.
-
Constructor Details
-
DefaultSerializerCollection
public DefaultSerializerCollection() -
DefaultSerializerCollection
-
-
Method Details
-
getInstanceFactory
Description copied from interface:SerializerCollectionGet the current instance factory.- Returns:
-
bind
Description copied from interface:SerializerCollectionBind a given type to the specified resolver. The resolver will be asked to resolve a more specific serializer based on type parameters. -
getResolver
Description copied from interface:SerializerCollectionGet the resolver this collection would use to resolve a serializer for the given type.- Returns:
-