Class 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 Detail

      • DefaultConverterFactory

        public DefaultConverterFactory​(@NotNull
                                       @NotNull Class<? extends com.thoughtworks.xstream.converters.Converter> targetClass)
    • 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 interface ConverterFactory
        Parameters:
        xStream - XStream instance
        Returns:
        new converter