Class DefaultConverterFactory
- java.lang.Object
-
- com.atlassian.bamboo.utils.xstream.converters.DefaultConverterFactory
-
- All Implemented Interfaces:
ConverterFactory
public class DefaultConverterFactory extends Object implements ConverterFactory
Creates converters given their class and assuming that they have single-parameter constructor takingMapper
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultConverterFactory.InstantiationStrategy
-
Constructor Summary
Constructors Constructor Description DefaultConverterFactory(@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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull com.thoughtworks.xstream.converters.Converter
createConverter(@NotNull com.thoughtworks.xstream.XStream xStream)
Create converter for given xStream instance.
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-