jp.develop.common.util.amf
Class AmfEncoderOption

java.lang.Object
  extended by jp.develop.common.util.amf.AmfEncoderOption

public class AmfEncoderOption
extends Object

Configuration option for AmfEncoder.

Author:
Waki Takeya
See Also:
AmfEncoder

Constructor Summary
AmfEncoderOption()
          Constructs a instance.
 
Method Summary
static AmfEncoderOption getDefault()
          Get default AMF encoder option.
 IEncoder<Object> getEncoder(Class<?> clazz)
          Get encoder for specified class.
 boolean isVerbose()
          Get the value of verbose.
 void putEncoder(Class<?> clazz, IEncoder<?> encoder)
          Resister custom encoder for specified class.
 void setVerbose(boolean verbose)
          Set the value of verbose.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmfEncoderOption

public AmfEncoderOption()
Constructs a instance. Default encoder is included.

Method Detail

getDefault

public static AmfEncoderOption getDefault()
Get default AMF encoder option.

Returns:
Default AMF encoder option.

isVerbose

public boolean isVerbose()
Get the value of verbose.

Returns:
true for verbose.

setVerbose

public void setVerbose(boolean verbose)
Set the value of verbose.

Parameters:
verbose - true for verbose.

getEncoder

public IEncoder<Object> getEncoder(Class<?> clazz)
Get encoder for specified class.

Parameters:
clazz - Target class.
Returns:
The encoder for specified class.

putEncoder

public void putEncoder(Class<?> clazz,
                       IEncoder<?> encoder)
Resister custom encoder for specified class. Following class has special meaning. - Enum: Default encoder for all enum class. - Externalizable: Default encoder for all Externalizable class. - Map: Default encoder for all Map class. - Object: Default encoder for all class.

Parameters:
clazz - Target class.
encoder - The encoder for specified class.