Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.axis.encoding.ser
Class SimpleDeserializerFactory  view SimpleDeserializerFactory download SimpleDeserializerFactory.java

java.lang.Object
  extended byorg.apache.axis.encoding.ser.BaseFactory
      extended byorg.apache.axis.encoding.ser.BaseDeserializerFactory
          extended byorg.apache.axis.encoding.ser.SimpleDeserializerFactory
All Implemented Interfaces:
javax.xml.rpc.encoding.DeserializerFactory, org.apache.axis.encoding.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.


Field Summary
private  java.lang.reflect.Constructor constructor
           
private  boolean isBasicType
           
private static java.lang.Class[] STRING_CLASS
           
private static java.lang.Class[] STRING_STRING_CLASS
           
 
Fields inherited from class org.apache.axis.encoding.ser.BaseDeserializerFactory
deserClass, deserClassConstructor, getDeserializer, javaType, log, mechanisms, xmlType
 
Fields inherited from class org.apache.axis.encoding.ser.BaseFactory
 
Constructor Summary
SimpleDeserializerFactory(java.lang.Class javaType, javax.xml.namespace.QName xmlType)
          Note that the factory is constructed with the QName and xmlType.
 
Method Summary
 javax.xml.rpc.encoding.Deserializer getDeserializerAs(java.lang.String mechanismType)
          Get the Deserializer and the set the Constructor so the deserializer does not have to do introspection.
private  void initConstructor(java.lang.Class javaType)
           
private  void readObject(java.io.ObjectInputStream in)
           
 
Methods inherited from class org.apache.axis.encoding.ser.BaseDeserializerFactory
createFactory, getDeserClassConstructor, getGeneralPurpose, getGetDeserializer, getSpecialized, getSupportedMechanismTypes
 
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

STRING_STRING_CLASS

private static final java.lang.Class[] STRING_STRING_CLASS

STRING_CLASS

private static final java.lang.Class[] STRING_CLASS

constructor

private transient java.lang.reflect.Constructor constructor

isBasicType

private boolean isBasicType
Constructor Detail

SimpleDeserializerFactory

public SimpleDeserializerFactory(java.lang.Class javaType,
                                 javax.xml.namespace.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 Detail

initConstructor

private void initConstructor(java.lang.Class javaType)

getDeserializerAs

public javax.xml.rpc.encoding.Deserializer getDeserializerAs(java.lang.String mechanismType)
                                                      throws javax.xml.rpc.JAXRPCException
Get the Deserializer and the set the Constructor so the deserializer does not have to do introspection.

Specified by:
getDeserializerAs in interface javax.xml.rpc.encoding.DeserializerFactory
Overrides:
getDeserializerAs in class BaseDeserializerFactory

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException