public abstract class BaseSerializerFactory extends BaseFactory implements SerializerFactory
Modifier and Type | Field and Description |
---|---|
protected Method |
getSerializer |
protected Class |
javaType |
protected static org.apache.commons.logging.Log |
log |
protected Serializer |
ser |
protected Class |
serClass |
protected Constructor |
serClassConstructor |
protected QName |
xmlType |
Constructor and Description |
---|
BaseSerializerFactory(Class serClass)
Constructor
|
BaseSerializerFactory(Class serClass,
QName xmlType,
Class javaType) |
Modifier and Type | Method and Description |
---|---|
static 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
|
protected Method |
getGetSerializer()
Returns the getSerializer.
|
Class |
getJavaType()
get javaType
|
protected Constructor |
getSerClassConstructor()
Returns the serClassConstructor.
|
Serializer |
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.
|
Iterator |
getSupportedMechanismTypes()
Returns a list of all XML processing mechanism types supported
by this SerializerFactory.
|
QName |
getXMLType()
get xmlType
|
getMethod
protected static org.apache.commons.logging.Log log
protected Class serClass
protected QName xmlType
protected Class javaType
protected transient Serializer ser
protected transient Constructor serClassConstructor
protected transient Method getSerializer
public BaseSerializerFactory(Class serClass)
serClass
- is the class of the Serializer
Sharing is only valid for xml primitives.public Serializer getSerializerAs(String mechanismType) throws JAXRPCException
SerializerFactory
getSerializerAs
in interface SerializerFactory
mechanismType
- - XML processing mechanism type [TBD: definition
of valid constants]Serializer
for the specified XML processing
mechanism typeJAXRPCException
- if SerializerFactory
does not support the
specified XML processing mechanismprotected Serializer getSerializerAsInternal(String mechanismType) throws JAXRPCException
JAXRPCException
protected Serializer getGeneralPurpose(String mechanismType)
protected Serializer getSpecialized(String mechanismType)
public Iterator getSupportedMechanismTypes()
getSupportedMechanismTypes
in interface SerializerFactory
public QName getXMLType()
public Class getJavaType()
public static SerializerFactory createFactory(Class factory, Class javaType, QName xmlType)
factory
- classxmlType
- javaType
- protected Method getGetSerializer()
protected Constructor getSerClassConstructor()
Copyright © The Apache Software Foundation. All Rights Reserved.