java.lang.Object
org.jboss.marshalling.MappingClassExternalizerFactory
- All Implemented Interfaces:
ClassExternalizerFactory
An externalizer factory which uses a fixed mapping from class to externalizer.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetExternalizer(Class<?> type) Look up a custom externalizer for a given object class.
-
Constructor Details
-
MappingClassExternalizerFactory
Construct a new instance. A copy is made of the given map.- Parameters:
map- the mapping
-
-
Method Details
-
getExternalizer
Look up a custom externalizer for a given object class. If no such externalizer exists, returnsnull. This implementation uses the fixed mapping that was specified in the constructor.- Specified by:
getExternalizerin interfaceClassExternalizerFactory- Parameters:
type- the type to be externalized- Returns:
- the externalizer, or
nullif there is none
-