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 taking Mapper.
  • 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 interface ConverterFactory
      Parameters:
      xStream - XStream instance
      Returns:
      new converter