Class DefaultImplementationsMapper

java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.DefaultImplementationsMapper
All Implemented Interfaces:
Mapper

public class DefaultImplementationsMapper extends MapperWrapper
Mapper that resolves default implementations of classes. For example, mapper.serializedClass(ArrayList.class) will return java.util.List. Calling mapper.defaultImplementationOf(List.class) will return ArrayList.
  • Field Details

    • typeToImpl

      private final Map typeToImpl
    • implToType

      private transient Map implToType
  • Constructor Details

    • DefaultImplementationsMapper

      public DefaultImplementationsMapper(Mapper wrapped)
  • Method Details