Class CGLIBMapper

  • All Implemented Interfaces:
    Mapper

    public class CGLIBMapper
    extends MapperWrapper
    Mapper that detects proxies generated by the CGLIB enhancer. The implementation modifies the name, so that it can identify these types. Note, that this mapper relies on the CGLIB converters:
    • CGLIBEnhancedConverter
    Since:
    1.2
    • Field Detail

      • DEFAULT_NAMING_MARKER

        private static java.lang.String DEFAULT_NAMING_MARKER
      • alias

        private final java.lang.String alias
    • Constructor Detail

      • CGLIBMapper

        public CGLIBMapper​(Mapper wrapped)
      • CGLIBMapper

        public CGLIBMapper​(Mapper wrapped,
                           java.lang.String alias)
    • Method Detail

      • serializedClass

        public java.lang.String serializedClass​(java.lang.Class type)
        Description copied from interface: Mapper
        How a class name should be represented in its serialized form.
        Specified by:
        serializedClass in interface Mapper
        Overrides:
        serializedClass in class MapperWrapper
      • realClass

        public java.lang.Class realClass​(java.lang.String elementName)
        Description copied from interface: Mapper
        How a serialized class representation should be mapped back to a real class.
        Specified by:
        realClass in interface Mapper
        Overrides:
        realClass in class MapperWrapper