站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

BaseSerializerFactory (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.encoding.ser
Class BaseSerializerFactory

java.lang.Object
  extended byorg.apache.axis.encoding.ser.BaseFactory
      extended byorg.apache.axis.encoding.ser.BaseSerializerFactory
All Implemented Interfaces:
Serializable, javax.xml.rpc.encoding.SerializerFactory, SerializerFactory
Direct Known Subclasses:
ArraySerializerFactory, Base64SerializerFactory, BeanSerializerFactory, CalendarSerializerFactory, DateSerializerFactory, DocumentSerializerFactory, ElementSerializerFactory, EnumSerializerFactory, HexSerializerFactory, JAFDataHandlerSerializerFactory, ListSerializerFactory, MapSerializerFactory, QNameSerializerFactory, SimpleSerializerFactory, VectorSerializerFactory

public abstract class BaseSerializerFactory
extends BaseFactory
implements SerializerFactory

Base class for Axis Serialization Factory classes for code reuse

Author:
Rich Scheuerle
See Also:
Serialized Form

Field Summary
protected  Method getSerializer
           
protected  Class javaType
           
protected  Serializer ser
           
protected  Class serClass
           
protected  Constructor serClassConstructor
           
protected  javax.xml.namespace.QName xmlType
           
 
Constructor Summary
BaseSerializerFactory(Class serClass)
          Constructor
BaseSerializerFactory(Class serClass, javax.xml.namespace.QName xmlType, Class javaType)
           
 
Method Summary
static SerializerFactory createFactory(Class factory, Class javaType, javax.xml.namespace.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 getGetSerializer()
          Returns the getSerializer.
 Class getJavaType()
          get javaType
protected  Constructor getSerClassConstructor()
          Returns the serClassConstructor.
 javax.xml.rpc.encoding.Serializer getSerializerAs(String mechanismType)
           
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.
 javax.xml.namespace.QName getXMLType()
          get xmlType
 
Methods inherited from class org.apache.axis.encoding.ser.BaseFactory
getMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serClass

protected Class serClass

xmlType

protected javax.xml.namespace.QName xmlType

javaType

protected Class javaType

ser

protected transient Serializer ser

serClassConstructor

protected transient Constructor serClassConstructor

getSerializer

protected transient Method getSerializer
Constructor Detail

BaseSerializerFactory

public BaseSerializerFactory(Class serClass)
Constructor

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

BaseSerializerFactory

public BaseSerializerFactory(Class serClass,
                             javax.xml.namespace.QName xmlType,
                             Class javaType)
Method Detail

getSerializerAs

public javax.xml.rpc.encoding.Serializer getSerializerAs(String mechanismType)
                                                  throws javax.xml.rpc.JAXRPCException
Specified by:
getSerializerAs in interface javax.xml.rpc.encoding.SerializerFactory
Throws:
javax.xml.rpc.JAXRPCException

getSerializerAsInternal

protected Serializer getSerializerAsInternal(String mechanismType)
                                      throws javax.xml.rpc.JAXRPCException
Throws:
javax.xml.rpc.JAXRPCException

getGeneralPurpose

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


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.

Specified by:
getSupportedMechanismTypes in interface javax.xml.rpc.encoding.SerializerFactory
Returns:
List of unique identifiers for the supported XML processing mechanism types

getXMLType

public javax.xml.namespace.QName getXMLType()
get xmlType

Returns:
xmlType QName for this factory

getJavaType

public Class getJavaType()
get javaType

Returns:
javaType Class for this factory

createFactory

public static SerializerFactory createFactory(Class factory,
                                              Class javaType,
                                              javax.xml.namespace.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 ()

Parameters:
factory - class
xmlType -
javaType -

getGetSerializer

protected Method getGetSerializer()
Returns the getSerializer.

Returns:
Method

getSerClassConstructor

protected Constructor getSerClassConstructor()
Returns the serClassConstructor.

Returns:
Constructor


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.