jp.develop.common.util.amf.decoder
Class ArrayWriterOption

java.lang.Object
  extended by jp.develop.common.util.amf.decoder.ArrayWriterOption

public class ArrayWriterOption
extends Object

Configuration option for ArrayWriter.

Author:
Waki Takeya
See Also:
ArrayWriter

Nested Class Summary
static interface ArrayWriterOption.IArrayFactory<T extends Collection<Object>>
          Interface for the collection factory.
 
Constructor Summary
ArrayWriterOption()
          Default constructor.
 
Method Summary
static ArrayWriterOption getDefault()
          Get default configuration option.
 ArrayWriterOption.IArrayFactory<Collection<Object>> getFactory(Class<?> clazz)
          Get the collection factory of specified class.
<T extends Collection<?>>
void
putFactory(Class<T> clazz, ArrayWriterOption.IArrayFactory<? extends T> factory)
          Register the collection factory of specified class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayWriterOption

public ArrayWriterOption()
Default constructor.

Method Detail

getDefault

public static ArrayWriterOption getDefault()
Get default configuration option.

Returns:
Default configuration option.

getFactory

public ArrayWriterOption.IArrayFactory<Collection<Object>> getFactory(Class<?> clazz)
Get the collection factory of specified class.

Parameters:
clazz - Target class.
Returns:
The factory of specified class.

putFactory

public <T extends Collection<?>> void putFactory(Class<T> clazz,
                                                 ArrayWriterOption.IArrayFactory<? extends T> factory)
Register the collection factory of specified class.

Type Parameters:
T - Target type of the factory.
Parameters:
clazz - Target class of the factory.
factory - The factory to be registered.