org.apache.axis.encoding.ser

Class BaseSerializerFactory

public abstract class BaseSerializerFactory extends BaseFactory implements SerializerFactory

Base class for Axis Serialization Factory classes for code reuse

Author: Rich Scheuerle

Field Summary
protected MethodgetSerializer
protected ClassjavaType
protected static Loglog
protected Serializerser
protected ClassserClass
protected ConstructorserClassConstructor
protected QNamexmlType
Constructor Summary
BaseSerializerFactory(Class serClass)
Constructor
BaseSerializerFactory(Class serClass, QName xmlType, Class javaType)
Method Summary
static SerializerFactorycreateFactory(Class factory, Class javaType, QName xmlType)
Utility method that intospects on a factory class to decide how to create the factory.
protected SerializergetGeneralPurpose(String mechanismType)
Obtains a serializer by invoking (javaType, xmlType) on the serClass.
protected MethodgetGetSerializer()
Returns the getSerializer.
ClassgetJavaType()
get javaType
protected ConstructorgetSerClassConstructor()
Returns the serClassConstructor.
SerializergetSerializerAs(String mechanismType)
protected SerializergetSerializerAsInternal(String mechanismType)
protected SerializergetSpecialized(String mechanismType)
Obtains a serializer by invoking getSerializer method in the javaType class or its Helper class.
IteratorgetSupportedMechanismTypes()
Returns a list of all XML processing mechanism types supported by this SerializerFactory.
QNamegetXMLType()
get xmlType

Field Detail

getSerializer

protected transient Method getSerializer

javaType

protected Class javaType

log

protected static Log log

ser

protected transient Serializer ser

serClass

protected Class serClass

serClassConstructor

protected transient Constructor serClassConstructor

xmlType

protected QName xmlType

Constructor Detail

BaseSerializerFactory

public BaseSerializerFactory(Class serClass)
Constructor

Parameters: serClass is the class of the Serializer Sharing is only valid for xml primitives.

BaseSerializerFactory

public BaseSerializerFactory(Class serClass, QName xmlType, Class javaType)

Method Detail

createFactory

public static SerializerFactory 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 xmlType javaType

getGeneralPurpose

protected Serializer getGeneralPurpose(String mechanismType)
Obtains a serializer by invoking (javaType, xmlType) on the serClass.

getGetSerializer

protected Method getGetSerializer()
Returns the getSerializer.

Returns: Method

getJavaType

public Class getJavaType()
get javaType

Returns: javaType Class for this factory

getSerClassConstructor

protected Constructor getSerClassConstructor()
Returns the serClassConstructor.

Returns: Constructor

getSerializerAs

public Serializer getSerializerAs(String mechanismType)

getSerializerAsInternal

protected Serializer getSerializerAsInternal(String mechanismType)

getSpecialized

protected Serializer getSpecialized(String mechanismType)
Obtains a serializer by invoking getSerializer 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 SerializerFactory.

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

getXMLType

public QName getXMLType()
get xmlType

Returns: xmlType QName for this factory

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