public class MappingClassExternalizerFactory extends java.lang.Object implements ClassExternalizerFactory
Constructor and Description |
---|
MappingClassExternalizerFactory(java.util.Map<java.lang.Class<?>,Externalizer> map)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Externalizer |
getExternalizer(java.lang.Class<?> type)
Look up a custom externalizer for a given object class.
|
public MappingClassExternalizerFactory(java.util.Map<java.lang.Class<?>,Externalizer> map)
map
- the mappingpublic Externalizer getExternalizer(java.lang.Class<?> type)
null
. This implementation uses the fixed mapping that was specified in the constructor.getExternalizer
in interface ClassExternalizerFactory
type
- the type to be externalizednull
if there is noneCopyright © 2011 JBoss, a division of Red Hat, Inc.