org.apache.axis.encoding.ser

Class BaseDeserializerFactory

public abstract class BaseDeserializerFactory extends BaseFactory implements DeserializerFactory

Base class for Axis Deserialization Factory classes for code reuse

Author: Rich Scheuerle

Field Summary
protected ClassdeserClass
protected ConstructordeserClassConstructor
protected MethodgetDeserializer
protected ClassjavaType
protected static Loglog
protected QNamexmlType
Constructor Summary
BaseDeserializerFactory(Class deserClass)
Constructor
BaseDeserializerFactory(Class deserClass, QName xmlType, Class javaType)
Method Summary
static DeserializerFactorycreateFactory(Class factory, Class javaType, QName xmlType)
Utility method that intospects on a factory class to decide how to create the factory.
protected ConstructorgetDeserClassConstructor()
Returns the deserClassConstructor.
DeserializergetDeserializerAs(String mechanismType)
protected DeserializergetGeneralPurpose(String mechanismType)
Obtains a deserializer by invoking (javaType, xmlType) on the deserClass.
protected MethodgetGetDeserializer()
Returns the getDeserializer.
protected DeserializergetSpecialized(String mechanismType)
Obtains a deserializer by invoking getDeserializer method in the javaType class or its Helper class.
IteratorgetSupportedMechanismTypes()
Returns a list of all XML processing mechanism types supported by this DeserializerFactory.

Field Detail

deserClass

protected Class deserClass

deserClassConstructor

protected transient Constructor deserClassConstructor

getDeserializer

protected transient Method getDeserializer

javaType

protected Class javaType

log

protected static Log log

xmlType

protected QName xmlType

Constructor Detail

BaseDeserializerFactory

public BaseDeserializerFactory(Class deserClass)
Constructor

Parameters: deserClass is the class of the Deserializer

BaseDeserializerFactory

public BaseDeserializerFactory(Class deserClass, QName xmlType, Class javaType)

Method Detail

createFactory

public static DeserializerFactory createFactory(Class factory, Class javaType, QName xmlType)
Utility method that intospects on a factory class to decide how to create the factory. Tries in the following order: public static create(Class javaType, QName xmlType) public (Class javaType, QName xmlType) public ()

Parameters: factory class javaType xmlType

getDeserClassConstructor

protected Constructor getDeserClassConstructor()
Returns the deserClassConstructor.

Returns: Constructor

getDeserializerAs

public Deserializer getDeserializerAs(String mechanismType)

getGeneralPurpose

protected Deserializer getGeneralPurpose(String mechanismType)
Obtains a deserializer by invoking (javaType, xmlType) on the deserClass.

getGetDeserializer

protected Method getGetDeserializer()
Returns the getDeserializer.

Returns: Method

getSpecialized

protected Deserializer getSpecialized(String mechanismType)
Obtains a deserializer by invoking getDeserializer method in the javaType class or its Helper class.

getSupportedMechanismTypes

public Iterator getSupportedMechanismTypes()
Returns a list of all XML processing mechanism types supported by this DeserializerFactory.

Returns: List of unique identifiers for the supported XML processing mechanism types

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.