org.jboss.axis.encoding.ser
Class BaseSerializerFactory

java.lang.Object
  extended byorg.jboss.axis.encoding.ser.BaseFactory (src) 
      extended byorg.jboss.axis.encoding.ser.BaseSerializerFactory
All Implemented Interfaces:
java.io.Serializable, SerializerFactory (src) , SerializerFactory (src)
Direct Known Subclasses:
ArraySerializerFactory (src) , AttributeSerFactory (src) , Base64BinaryArraySerializerFactory (src) , Base64SerializerFactory (src) , BeanSerializerFactory (src) , CalendarSerializerFactory (src) , DateSerializerFactory (src) , DocumentSerializerFactory (src) , ElementSerializerFactory (src) , EnumSerializerFactory (src) , HexBinaryArraySerializerFactory (src) , HexSerializerFactory (src) , JAFDataHandlerSerializerFactory (src) , ListSerializerFactory (src) , MapSerializerFactory (src) , MBeanAttributeInfoSerFactory (src) , MBeanConstructorInfoSerFactory (src) , MBeanInfoSerFactory (src) , MBeanNotificationInfoSerFactory (src) , MBeanOperationInfoSerFactory (src) , MBeanParameterInfoSerFactory (src) , MetaDataBeanSerializerFactory (src) , ObjectInstanceSerFactory (src) , ObjectNameSerFactory (src) , QNameSerializerFactory (src) , SimpleSerializerFactory (src) , SOAPArraySerializerFactory (src) , VectorSerializerFactory (src)

public abstract class BaseSerializerFactory
extends BaseFactory (src)
implements SerializerFactory (src)

Base class for Axis Serialization Factory classes for code reuse

See Also:
Serialized Form

Field Summary
protected  java.lang.reflect.Method getSerializer
           
protected  java.lang.Class javaType
           
protected  Serializer (src) ser
           
protected  java.lang.Class serClass
           
protected  java.lang.reflect.Constructor serClassConstructor
           
protected  QName (src) xmlType
           
 
Constructor Summary
BaseSerializerFactory(java.lang.Class serClass)
          Constructor
BaseSerializerFactory(java.lang.Class serClass, QName (src)  xmlType, java.lang.Class javaType)
           
 
Method Summary
static SerializerFactory (src) createFactory(java.lang.Class factory, java.lang.Class javaType, QName (src)  xmlType)
          Utility method that intospects on a factory class to decide how to create the factory.
protected  Serializer (src) getGeneralPurpose(java.lang.String mechanismType)
          Obtains a serializer by invoking (javaType, xmlType) on the serClass.
protected  java.lang.reflect.Method getGetSerializer()
          Returns the getSerializer.
 java.lang.Class getJavaType()
          get javaType
protected  java.lang.reflect.Constructor getSerClassConstructor()
          Returns the serClassConstructor.
 Serializer (src) getSerializerAs(java.lang.String mechanismType)
           
protected  Serializer (src) getSerializerAsInternal(java.lang.String mechanismType)
           
protected  Serializer (src) getSpecialized(java.lang.String mechanismType)
          Obtains a serializer by invoking getSerializer method in the javaType class or its Helper class.
 java.util.Iterator getSupportedMechanismTypes()
          Returns a list of all XML processing mechanism types supported by this SerializerFactory.
 QName (src) getXMLType()
          get xmlType
 
Methods inherited from class org.jboss.axis.encoding.ser.BaseFactory (src)
getMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serClass

protected java.lang.Class serClass

xmlType

protected QName (src)  xmlType

javaType

protected java.lang.Class javaType

ser

protected transient Serializer (src)  ser

serClassConstructor

protected transient java.lang.reflect.Constructor serClassConstructor

getSerializer

protected transient java.lang.reflect.Method getSerializer
Constructor Detail

BaseSerializerFactory

public BaseSerializerFactory(java.lang.Class serClass)
Constructor

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

BaseSerializerFactory

public BaseSerializerFactory(java.lang.Class serClass,
                             QName (src)  xmlType,
                             java.lang.Class javaType)
Method Detail

getSerializerAs

public Serializer (src)  getSerializerAs(java.lang.String mechanismType)
                           throws JAXRPCException (src) 
Specified by:
getSerializerAs in interface SerializerFactory (src)
Throws:
JAXRPCException (src)

getSerializerAsInternal

protected Serializer (src)  getSerializerAsInternal(java.lang.String mechanismType)
                                      throws JAXRPCException (src) 
Throws:
JAXRPCException (src)

getGeneralPurpose

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


getSpecialized

protected Serializer (src)  getSpecialized(java.lang.String mechanismType)
Obtains a serializer by invoking getSerializer method in the javaType class or its Helper class.


getSupportedMechanismTypes

public java.util.Iterator getSupportedMechanismTypes()
Returns a list of all XML processing mechanism types supported by this SerializerFactory.

Specified by:
getSupportedMechanismTypes in interface SerializerFactory (src)
Returns:
List of unique identifiers for the supported XML processing mechanism types

getXMLType

public QName (src)  getXMLType()
get xmlType

Returns:
xmlType QName for this factory

getJavaType

public java.lang.Class getJavaType()
get javaType

Returns:
javaType Class for this factory

createFactory

public static SerializerFactory (src)  createFactory(java.lang.Class factory,
                                              java.lang.Class javaType,
                                              QName (src)  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 -

getGetSerializer

protected java.lang.reflect.Method getGetSerializer()
Returns the getSerializer.

Returns:
Method

getSerClassConstructor

protected java.lang.reflect.Constructor getSerClassConstructor()
Returns the serClassConstructor.

Returns:
Constructor