org.apache.axis.encoding.ser

Class SimpleDeserializerFactory

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

public class SimpleDeserializerFactory
extends BaseDeserializerFactory

A deserializer for any simple type with a (String) constructor. Note: this class is designed so that subclasses need only override the makeValue method in order to construct objects of their own type.

Authors:
Glen Daniels (gdaniels@apache.org)
Sam Ruby (rubys@us.ibm.com) Modified for JAX-RPC @author Rich Scheuerle (scheu@us.ibm.com)

Field Summary

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

deserClass, deserClassConstructor, getDeserializer, javaType, log, xmlType

Constructor Summary

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

Method Summary

Deserializer
getDeserializerAs(String mechanismType)
Get the Deserializer and the set the Constructor so the deserializer does not have to do introspection.

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

createFactory, getDeserClassConstructor, getDeserializerAs, getGeneralPurpose, getGetDeserializer, getSpecialized, getSupportedMechanismTypes

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

getMethod

Constructor Details

SimpleDeserializerFactory

public SimpleDeserializerFactory(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

getDeserializerAs

public Deserializer getDeserializerAs(String mechanismType)
            throws JAXRPCException
Get the Deserializer and the set the Constructor so the deserializer does not have to do introspection.
Specified by:
getDeserializerAs in interface DeserializerFactory
Overrides:
getDeserializerAs in interface BaseDeserializerFactory


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