org.apache.axis.encoding.ser
Class BaseSerializerFactory
- java.io.Serializable, SerializerFactory, SerializerFactory
public abstract class BaseSerializerFactory
Base class for Axis Serialization Factory classes for code reuse
- Rich Scheuerle
getSerializer
protected Method getSerializer
javaType
protected Class javaType
log
protected static Log log
serClass
protected Class serClass
serClassConstructor
protected Constructor serClassConstructor
xmlType
protected QName xmlType
BaseSerializerFactory
public BaseSerializerFactory(Class serClass)
Constructor
serClass
- is the class of the Serializer
Sharing is only valid for xml primitives.
BaseSerializerFactory
public BaseSerializerFactory(Class serClass,
QName xmlType,
Class javaType)
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 ()
factory
- classjavaType
- xmlType
-
getGeneralPurpose
protected Serializer getGeneralPurpose(String mechanismType)
Obtains a serializer by invoking (javaType, xmlType)
on the serClass.
getGetSerializer
protected Method getGetSerializer()
Returns the getSerializer.
- Method
getJavaType
public Class getJavaType()
get javaType
- javaType Class for this factory
getSerClassConstructor
protected Constructor getSerClassConstructor()
Returns the serClassConstructor.
- Constructor
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.
- getSupportedMechanismTypes in interface SerializerFactory
- List of unique identifiers for the supported XML
processing mechanism types
getXMLType
public QName getXMLType()
get xmlType
- xmlType QName for this factory
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.