com.caucho.hessian.io

Class BeanDeserializer


public class BeanDeserializer
extends AbstractMapDeserializer

Serializing an object for known object types.

Field Summary

private Constructor
_constructor
private Object[]
_constructorArgs
private HashMap
_methodMap
private Method
_readResolve
private Class
_type

Constructor Summary

BeanDeserializer(Class cl)

Method Summary

private Method
findGetter(Method[] methods, String setterName, Class arg)
Finds any matching setter.
protected HashMap
getMethodMap(Class cl)
Creates a map of the classes fields.
protected static Object
getParamArg(Class cl)
Creates a map of the classes fields.
Class
getType()
protected Object
instantiate()
Object
readMap(AbstractHessianInput in)
Object
readMap(AbstractHessianInput in, Object obj)
private Object
resolve(Object obj)

Methods inherited from class com.caucho.hessian.io.AbstractMapDeserializer

readObject

Methods inherited from class com.caucho.hessian.io.Deserializer

getType, readList, readMap, readObject

Field Details

_constructor

private Constructor _constructor

_constructorArgs

private Object[] _constructorArgs

_methodMap

private HashMap _methodMap

_readResolve

private Method _readResolve

_type

private Class _type

Constructor Details

BeanDeserializer

public BeanDeserializer(Class cl)

Method Details

findGetter

private Method findGetter(Method[] methods,
                          String setterName,
                          Class arg)
Finds any matching setter.

getMethodMap

protected HashMap getMethodMap(Class cl)
Creates a map of the classes fields.

getParamArg

protected static Object getParamArg(Class cl)
Creates a map of the classes fields.

getType

public Class getType()
Overrides:
getType in interface Deserializer

instantiate

protected Object instantiate()
            throws Exception

readMap

public Object readMap(AbstractHessianInput in)
            throws IOException
Overrides:
readMap in interface Deserializer

readMap

public Object readMap(AbstractHessianInput in,
                      Object obj)
            throws IOException

resolve

private Object resolve(Object obj)