Class PluginsAwareMapper

  • All Implemented Interfaces:
    com.thoughtworks.xstream.mapper.Mapper

    public class PluginsAwareMapper
    extends com.thoughtworks.xstream.mapper.MapperWrapper

    Mapper that is able to load classes from the plugin system.

    Must be used on the both ends of the serialization process to work properly.

    Since:
    v3.3
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PluginsAwareMapper.Factory  
      • Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper

        com.thoughtworks.xstream.mapper.Mapper.ImplicitCollectionMapping, com.thoughtworks.xstream.mapper.Mapper.Null
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginsAwareMapper​(@NotNull com.thoughtworks.xstream.mapper.Mapper wrapped, com.atlassian.plugin.PluginAccessor pluginAccessor)  
      PluginsAwareMapper​(@NotNull com.thoughtworks.xstream.mapper.Mapper wrapped, com.atlassian.plugin.PluginAccessor pluginAccessor, boolean enforceVersionCompatibility)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Class realClass​(String elementName)  
      String serializedClass​(Class type)  
      • Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper

        aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realMember, serializedMember, shouldSerializeMember
    • Constructor Detail

      • PluginsAwareMapper

        public PluginsAwareMapper​(@NotNull
                                  @NotNull com.thoughtworks.xstream.mapper.Mapper wrapped,
                                  com.atlassian.plugin.PluginAccessor pluginAccessor)
      • PluginsAwareMapper

        public PluginsAwareMapper​(@NotNull
                                  @NotNull com.thoughtworks.xstream.mapper.Mapper wrapped,
                                  com.atlassian.plugin.PluginAccessor pluginAccessor,
                                  boolean enforceVersionCompatibility)
    • Method Detail

      • serializedClass

        public String serializedClass​(Class type)
        Specified by:
        serializedClass in interface com.thoughtworks.xstream.mapper.Mapper
        Overrides:
        serializedClass in class com.thoughtworks.xstream.mapper.MapperWrapper
      • realClass

        public Class realClass​(String elementName)
        Specified by:
        realClass in interface com.thoughtworks.xstream.mapper.Mapper
        Overrides:
        realClass in class com.thoughtworks.xstream.mapper.MapperWrapper