org.apache.axis.encoding.ser

Class SimpleSerializerFactory

Implemented Interfaces:
java.io.Serializable, SerializerFactory, SerializerFactory

public class SimpleSerializerFactory
extends BaseSerializerFactory

Author:
Glen Daniels (gdaniels@apache.org)

Field Summary

Fields inherited from class org.apache.axis.encoding.ser.BaseSerializerFactory

getSerializer, javaType, log, ser, serClass, serClassConstructor, xmlType

Constructor Summary

SimpleSerializerFactory(Class javaType, QName xmlType)
Note that the factory is constructed with the QName and xmlType.

Method Summary

Serializer
getSerializerAs(String mechanismType)
Returns a Serializer for the specified XML processing mechanism type.

Methods inherited from class org.apache.axis.encoding.ser.BaseSerializerFactory

createFactory, getGeneralPurpose, getGetSerializer, getJavaType, getSerClassConstructor, getSerializerAs, getSerializerAsInternal, getSpecialized, getSupportedMechanismTypes, getXMLType

Methods inherited from class org.apache.axis.encoding.ser.BaseFactory

getMethod

Constructor Details

SimpleSerializerFactory

public SimpleSerializerFactory(Class javaType,
                               QName xmlType)
Note that the factory is constructed with the QName and xmlType. This is important to allow distinction between primitive values and java.lang wrappers.

Method Details

getSerializerAs

public Serializer getSerializerAs(String mechanismType)
            throws JAXRPCException
Returns a Serializer for the specified XML processing mechanism type.
Specified by:
getSerializerAs in interface SerializerFactory
Overrides:
getSerializerAs in interface BaseSerializerFactory

Parameters:
mechanismType - - XML processing mechanism type [TBD: definition of valid constants]

Returns:
a Serializer for the specified XML processing mechanism type

Throws:
JAXRPCException - if SerializerFactory does not support the specified XML processing mechanism


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.