com.atlassian.bamboo.serialization.xstream
Class PluginsAwareMapper

java.lang.Object
  extended by com.thoughtworks.xstream.mapper.MapperWrapper
      extended by com.atlassian.bamboo.serialization.xstream.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
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
PluginsAwareMapper(com.thoughtworks.xstream.mapper.Mapper wrapped, com.atlassian.plugin.PluginAccessor pluginAccessor)
           
PluginsAwareMapper(com.thoughtworks.xstream.mapper.Mapper wrapped, com.atlassian.plugin.PluginAccessor pluginAccessor, boolean enforceVersionCompatibility)
           
 
Method Summary
 java.lang.Class realClass(java.lang.String elementName)
           
 java.lang.String serializedClass(java.lang.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, isImmutableValueType, lookupMapperOfType, realMember, serializedMember, shouldSerializeMember
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginsAwareMapper

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

PluginsAwareMapper

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

serializedClass

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

realClass

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


Copyright © 2012 Atlassian. All Rights Reserved.