Class DefaultMapperFactory
java.lang.Object
com.atlassian.bamboo.utils.xstream.mappers.DefaultMapperFactory
- All Implemented Interfaces:
MapperFactory
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMapperFactory(Class<? extends com.thoughtworks.xstream.mapper.MapperWrapper> mapperClass) -
Method Summary
Modifier and TypeMethodDescription@NotNull com.thoughtworks.xstream.mapper.MapperWrappercreateMapper(@NotNull com.thoughtworks.xstream.mapper.MapperWrapper next) Create custom mapper that wraps the default mapper chain represented by wrappedMapper.
-
Constructor Details
-
DefaultMapperFactory
public DefaultMapperFactory(Class<? extends com.thoughtworks.xstream.mapper.MapperWrapper> mapperClass)
-
-
Method Details
-
createMapper
@NotNull public @NotNull com.thoughtworks.xstream.mapper.MapperWrapper createMapper(@NotNull @NotNull com.thoughtworks.xstream.mapper.MapperWrapper next) Description copied from interface:MapperFactoryCreate custom mapper that wraps the default mapper chain represented by wrappedMapper.
- Specified by:
createMapperin interfaceMapperFactory- Parameters:
next- wrapped mapper- Returns:
- new custom mapper instance, should never be
null
-