com.atlassian.bamboo.serialization.xstream
Class DefaultConverterFactory

java.lang.Object
  extended by com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory
All Implemented Interfaces:
ConverterFactory

public class DefaultConverterFactory
extends java.lang.Object
implements ConverterFactory

Creates converters given their class and assuming that they have single-parameter constructor taking Mapper.

See Also:
3.3

Nested Class Summary
static class DefaultConverterFactory.InstantiationStrategy
           
 
Constructor Summary
DefaultConverterFactory(java.lang.Class<? extends com.thoughtworks.xstream.converters.Converter> targetClass)
           
DefaultConverterFactory(java.lang.Class<? extends com.thoughtworks.xstream.converters.Converter> targetClass, DefaultConverterFactory.InstantiationStrategy instantiationStrategy)
           
 
Method Summary
 com.thoughtworks.xstream.converters.Converter createConverter(com.thoughtworks.xstream.XStream xStream)
          Create converter for given xStream instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConverterFactory

public DefaultConverterFactory(@NotNull
                               java.lang.Class<? extends com.thoughtworks.xstream.converters.Converter> targetClass)

DefaultConverterFactory

public DefaultConverterFactory(@NotNull
                               java.lang.Class<? extends com.thoughtworks.xstream.converters.Converter> targetClass,
                               @NotNull
                               DefaultConverterFactory.InstantiationStrategy instantiationStrategy)
Method Detail

createConverter

@NotNull
public com.thoughtworks.xstream.converters.Converter createConverter(@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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.