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

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

public class ObjectWriterOption
extends Object

Configuration options for ObjectWriter. You can add a factory of object proxy for each class.

Author:
Waki Takeya
See Also:
ObjectWriter

Nested Class Summary
static interface ObjectWriterOption.IObjectProxyFactory
          Interface for the factory of object proxy.
 
Constructor Summary
ObjectWriterOption()
          Default constructor.
 
Method Summary
static ObjectWriterOption getDefault()
          Get default configuration option.
 IObjectWriter.IObjectProxy getProxy(Class<?> clazz)
          Get proxy object for the class.
 void putFactory(Class<?> clazz, ObjectWriterOption.IObjectProxyFactory factory)
          Put factory for the class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectWriterOption

public ObjectWriterOption()
Default constructor.

Method Detail

getDefault

public static ObjectWriterOption getDefault()
Get default configuration option.

Returns:
Default configuration.

putFactory

public void putFactory(Class<?> clazz,
                       ObjectWriterOption.IObjectProxyFactory factory)
Put factory for the class.

Parameters:
clazz - Target class of the factory.
factory - The factory for object proxy.

getProxy

public IObjectWriter.IObjectProxy getProxy(Class<?> clazz)
Get proxy object for the class.

Parameters:
clazz - The target class of the proxy object.
Returns:
The proxy object for the class.