Class DefaultConverterFactory
java.lang.Object
com.atlassian.bamboo.utils.xstream.converters.DefaultConverterFactory
- All Implemented Interfaces:
ConverterFactory
Creates converters given their class and assuming that they have single-parameter constructor taking
Mapper
.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDefaultConverterFactory
(@NotNull Class<? extends com.thoughtworks.xstream.converters.Converter> targetClass) DefaultConverterFactory
(@NotNull Class<? extends com.thoughtworks.xstream.converters.Converter> targetClass, @NotNull DefaultConverterFactory.InstantiationStrategy instantiationStrategy) -
Method Summary
Modifier and TypeMethodDescription@NotNull com.thoughtworks.xstream.converters.Converter
createConverter
(@NotNull com.thoughtworks.xstream.XStream xStream) Create converter for given xStream instance.
-
Constructor Details
-
DefaultConverterFactory
public DefaultConverterFactory(@NotNull @NotNull Class<? extends com.thoughtworks.xstream.converters.Converter> targetClass) -
DefaultConverterFactory
public DefaultConverterFactory(@NotNull @NotNull Class<? extends com.thoughtworks.xstream.converters.Converter> targetClass, @NotNull @NotNull DefaultConverterFactory.InstantiationStrategy instantiationStrategy)
-
-
Method Details
-
createConverter
@NotNull public @NotNull com.thoughtworks.xstream.converters.Converter createConverter(@NotNull @NotNull com.thoughtworks.xstream.XStream xStream) Description copied from interface:ConverterFactory
Create converter for given xStream instance.- Specified by:
createConverter
in interfaceConverterFactory
- Parameters:
xStream
- XStream instance- Returns:
- new converter
-