Package org.apache.axis.encoding.ser
Class BaseSerializerFactory
java.lang.Object
org.apache.axis.encoding.ser.BaseFactory
org.apache.axis.encoding.ser.BaseSerializerFactory
- All Implemented Interfaces:
Serializable
,SerializerFactory
,SerializerFactory
- Direct Known Subclasses:
ArraySerializerFactory
,Base64SerializerFactory
,BeanSerializerFactory
,CalendarSerializerFactory
,CastorEnumTypeSerializerFactory
,CastorSerializerFactory
,DateSerializerFactory
,DocumentSerializerFactory
,ElementSerializerFactory
,EnumSerializerFactory
,HexSerializerFactory
,JAFDataHandlerSerializerFactory
,MapSerializerFactory
,QNameSerializerFactory
,SimpleListSerializerFactory
,SimpleSerializerFactory
,TimeSerializerFactory
,VectorSerializerFactory
,XmlBeanSerializerFactory
Base class for Axis Serialization Factory classes for code reuse
- Author:
- Rich Scheuerle <scheu@us.ibm.com>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Method
protected Class
protected static org.apache.commons.logging.Log
protected Serializer
protected Class
protected Constructor
protected QName
-
Constructor Summary
ConstructorsConstructorDescriptionBaseSerializerFactory
(Class serClass) ConstructorBaseSerializerFactory
(Class serClass, QName xmlType, Class javaType) -
Method Summary
Modifier and TypeMethodDescriptionstatic SerializerFactory
createFactory
(Class factory, Class javaType, QName xmlType) Utility method that intospects on a factory class to decide how to create the factory.protected Serializer
getGeneralPurpose
(String mechanismType) Obtains a serializer by invoking(javaType, xmlType) on the serClass. protected Method
Returns the getSerializer.get javaTypeprotected Constructor
Returns the serClassConstructor.getSerializerAs
(String mechanismType) Returns a Serializer for the specified XML processing mechanism type.protected Serializer
getSerializerAsInternal
(String mechanismType) protected Serializer
getSpecialized
(String mechanismType) Obtains a serializer by invoking getSerializer method in the javaType class or its Helper class.Returns a list of all XML processing mechanism types supported by this SerializerFactory.get xmlTypeMethods inherited from class org.apache.axis.encoding.ser.BaseFactory
getMethod
-
Field Details
-
log
protected static org.apache.commons.logging.Log log -
serClass
-
xmlType
-
javaType
-
ser
-
serClassConstructor
-
getSerializer
-
-
Constructor Details
-
BaseSerializerFactory
Constructor- Parameters:
serClass
- is the class of the Serializer Sharing is only valid for xml primitives.
-
BaseSerializerFactory
-
-
Method Details
-
getSerializerAs
Description copied from interface:SerializerFactory
Returns a Serializer for the specified XML processing mechanism type.- Specified by:
getSerializerAs
in interfaceSerializerFactory
- Parameters:
mechanismType
- - XML processing mechanism type [TBD: definition of valid constants]- Returns:
- a
Serializer
for the specified XML processing mechanism type - Throws:
JAXRPCException
- ifSerializerFactory
does not support the specified XML processing mechanism
-
getSerializerAsInternal
- Throws:
JAXRPCException
-
getGeneralPurpose
Obtains a serializer by invoking(javaType, xmlType) on the serClass. -
getSpecialized
Obtains a serializer by invoking getSerializer method in the javaType class or its Helper class. -
getSupportedMechanismTypes
Returns a list of all XML processing mechanism types supported by this SerializerFactory.- Specified by:
getSupportedMechanismTypes
in interfaceSerializerFactory
- Returns:
- List of unique identifiers for the supported XML processing mechanism types
-
getXMLType
get xmlType- Returns:
- xmlType QName for this factory
-
getJavaType
get javaType- Returns:
- javaType Class for this factory
-
createFactory
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
- classxmlType
-javaType
-
-
getGetSerializer
Returns the getSerializer.- Returns:
- Method
-
getSerClassConstructor
Returns the serClassConstructor.- Returns:
- Constructor
-