Class MappingClassExternalizerFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Externalizer getExternalizer​(java.lang.Class<?> type)
      Look up a custom externalizer for a given object class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • externalizerMap

        private final java.util.Map<java.lang.Class<?>,​Externalizer> externalizerMap
    • Constructor Detail

      • MappingClassExternalizerFactory

        public MappingClassExternalizerFactory​(java.util.Map<java.lang.Class<?>,​Externalizer> map)
        Construct a new instance. A copy is made of the given map.
        Parameters:
        map - the mapping
    • Method Detail

      • getExternalizer

        public Externalizer getExternalizer​(java.lang.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:
        getExternalizer in interface ClassExternalizerFactory
        Parameters:
        type - the type to be externalized
        Returns:
        the externalizer, or null if there is none