|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bea.rfid.edge.toolkit.workflow.SerializationHelper
public class SerializationHelper
Singleton class with utility methods that help in serialization and deserialization
of objects within the edge flow system. Most of the utility methods use
WorkflowNamingService to get to the registered
serializers and deserializers and hence need the naming service to be passed in to the
methods.
| Method Summary | |
|---|---|
static SerializationHelper |
getInstance()
Returns the singleton instance of this class. |
MessageDeserializer |
lookupDeserializer(Document doc,
WorkflowNamingService ns)
Looks up deserializer for a given XML Document. |
MessageSerializer |
lookupSerializer(Object msg,
WorkflowNamingService ns)
Looks up serializer for a given object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SerializationHelper getInstance()
public MessageSerializer lookupSerializer(Object msg,
WorkflowNamingService ns)
throws com.connecterra.ale.encoding.XMLSerializerException
msg - The object for which a serializer is to be found.ns - Naming service implementation that will be used to lookup serializers.
MessageSerializer for the input object.
com.connecterra.ale.encoding.XMLSerializerException - If a serializer was not found for the object.
public MessageDeserializer lookupDeserializer(Document doc,
WorkflowNamingService ns)
throws com.connecterra.ale.encoding.XMLDeserializerException
doc - The xml Document for which deserializer is to be found.ns - Naming service that has deserializers and serializers registered with it.
MessageDeserializer for the input document.
com.connecterra.ale.encoding.XMLDeserializerException - If no deserializer was found for the Document.
|
Documentation is available at ${DOCSWEBROOT} Copyright 2007 BEA Systems Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||