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 invalid input: '<'scheu@us.ibm.com>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Methodprotected Classprotected static org.apache.commons.logging.Logprotected Serializerprotected Classprotected Constructorprotected QName -
Constructor Summary
ConstructorsConstructorDescriptionBaseSerializerFactory(Class serClass) ConstructorBaseSerializerFactory(Class serClass, QName xmlType, Class javaType) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 MethodReturns the getSerializer.get javaTypeprotected ConstructorReturns the serClassConstructor.getSerializerAs(String mechanismType) Returns a Serializer for the specified XML processing mechanism type.protected SerializergetSerializerAsInternal(String mechanismType) protected SerializergetSpecialized(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:SerializerFactoryReturns a Serializer for the specified XML processing mechanism type.- Specified by:
getSerializerAsin interfaceSerializerFactory- Parameters:
mechanismType- - XML processing mechanism type [TBD: definition of valid constants]- Returns:
- a
Serializerfor the specified XML processing mechanism type - Throws:
JAXRPCException- ifSerializerFactorydoes 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:
getSupportedMechanismTypesin 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- classjavaType-xmlType-
-
getGetSerializer
Returns the getSerializer.- Returns:
- Method
-
getSerClassConstructor
Returns the serClassConstructor.- Returns:
- Constructor
-