public class OsgiClassnameMapper
extends com.thoughtworks.xstream.mapper.MapperWrapper
We also have the context in that loader so if we wanted to optimize we could scan that for bundles and suppress bundles if it's in scope. However if we plan to move to referring to RegisteredTypes for anything serialized that's irrelevant.
We could have code that uses the search path from that loader to prefers types in local bundles, ignoring the bundle name if the class is found there (either always, or just if the bundle is not found / deprecated).
Constructor and Description |
---|
OsgiClassnameMapper(<any> xstream,
com.thoughtworks.xstream.mapper.MapperWrapper mapper) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
realClass(java.lang.String elementName) |
java.lang.String |
serializedClass(java.lang.Class type) |
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getFieldNameForItemTypeAndName, getImplicitCollectionDefForFieldName, getItemTypeForItemFieldName, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realMember, serializedMember, shouldSerializeMember
public OsgiClassnameMapper(<any> xstream, com.thoughtworks.xstream.mapper.MapperWrapper mapper)
public java.lang.String serializedClass(java.lang.Class type)
serializedClass
in interface com.thoughtworks.xstream.mapper.Mapper
serializedClass
in class com.thoughtworks.xstream.mapper.MapperWrapper
public java.lang.Class realClass(java.lang.String elementName)
realClass
in interface com.thoughtworks.xstream.mapper.Mapper
realClass
in class com.thoughtworks.xstream.mapper.MapperWrapper