de.netseeker.ejoe.adapter
Class JavaBeansXmlAdapter

java.lang.Object
  extended byde.netseeker.ejoe.adapter.JavaBeansXmlAdapter
All Implemented Interfaces:
java.io.Serializable, SerializeAdapter

public class JavaBeansXmlAdapter
extends java.lang.Object
implements SerializeAdapter

Simple SerializeAdapter implementation using the XmlEncoder/XmlDecoder classes of the Java Beans API

Author:
netseeker
See Also:
Serialized Form

Constructor Summary
JavaBeansXmlAdapter()
           
 
Method Summary
 void handleClassLoaderChange(java.lang.ClassLoader classLoader)
          Signals a change of the ContextClassLoader of the current thread to the adapter.
 java.lang.Object read(java.io.InputStream in)
          Deserializes an object out of an given InputStream
 void write(java.lang.Object obj, java.io.OutputStream out)
          Serializes an object into an output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaBeansXmlAdapter

public JavaBeansXmlAdapter()
Method Detail

read

public java.lang.Object read(java.io.InputStream in)
                      throws java.io.IOException
Description copied from interface: SerializeAdapter
Deserializes an object out of an given InputStream

Specified by:
read in interface SerializeAdapter
Parameters:
in - the input stream to use for deserialization
Returns:
a deserialized object instance
Throws:
java.io.IOException

write

public void write(java.lang.Object obj,
                  java.io.OutputStream out)
           throws java.io.IOException
Description copied from interface: SerializeAdapter
Serializes an object into an output stream

Specified by:
write in interface SerializeAdapter
Parameters:
obj - object that should get serialized
out - the outputstream into which the object should serialized
Throws:
java.io.IOException

handleClassLoaderChange

public void handleClassLoaderChange(java.lang.ClassLoader classLoader)
Description copied from interface: SerializeAdapter
Signals a change of the ContextClassLoader of the current thread to the adapter. This method will be called when the EJOE client is started with support for remote classloading.

Specified by:
handleClassLoaderChange in interface SerializeAdapter
Parameters:
classLoader -


Copyright © 2005-2006 netseeker. All Rights Reserved.