org.jboss.marshalling
Class MappingClassExternalizerFactory
java.lang.Object
   org.jboss.marshalling.MappingClassExternalizerFactory
org.jboss.marshalling.MappingClassExternalizerFactory
- All Implemented Interfaces: 
- ClassExternalizerFactory
- public class MappingClassExternalizerFactory 
- extends Object- implements ClassExternalizerFactory
 
An externalizer factory which uses a fixed mapping from class to externalizer.
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MappingClassExternalizerFactory
public MappingClassExternalizerFactory(Map<Class<?>,Externalizer> map)
- Construct a new instance.  A copy is made of the given map.
 
- Parameters:
- map- the mapping
 
getExternalizer
public Externalizer getExternalizer(Class<?> type)
- Look up a custom externalizer for a given object class.  If no such externalizer exists, returns null.  This implementation uses the fixed mapping that was specified in the constructor.
 
- 
- Specified by:
- getExternalizerin interface- ClassExternalizerFactory
 
- 
- Parameters:
- type- the type to be externalized
- Returns:
- the externalizer, or nullif there is none
 
Copyright © 2011 JBoss, a division of Red Hat, Inc.