org.idoox.wasp.serialization
Interface Deserializer

All Superinterfaces:
Deserializer, java.io.Serializable

public interface Deserializer
extends Deserializer

Deserializes a stream from EncodingToken into a Java objects.

Since:
4.0
Component:
Core

Field Summary
static java.lang.String MECHANISM_TYPE
          JAX-RPC mechanism type.
 
Method Summary
 java.lang.Object deserialize(EncodingTokenizer dataTokenizer, java.lang.Class targetClass, DeserializationContext context, DeserializationChain chain)
          Deserializes a stream from EncodingTokenizer into a Java objects.
 void init(Configurable configurable)
          Initializes the deserializer.
 
Methods inherited from interface javax.xml.rpc.encoding.Deserializer
getMechanismType
 

Field Detail

MECHANISM_TYPE

public static final java.lang.String MECHANISM_TYPE
JAX-RPC mechanism type.

Every deserializer that implements this interface must return this constant as a result of getMechanismType() call.

Method Detail

deserialize

public java.lang.Object deserialize(EncodingTokenizer dataTokenizer,
                                    java.lang.Class targetClass,
                                    DeserializationContext context,
                                    DeserializationChain chain)
                             throws MessageProcessingException
Deserializes a stream from EncodingTokenizer into a Java objects.

Parameters:
dataTokenizer - the tokenizer returning a stream of tokens
targetClass - the class which should be instantiated and filled with incoming data
context - the walker which controls the usage of custom deserializers and takes care about references
Returns:
the deserialized object
Throws:
MessageProcessingException - if the deserialization has not been successful

init

public void init(Configurable configurable)
Initializes the deserializer.

Called anytime before the deserializer is used.

Parameters:
configurable - the configurable of the deserializer