de.netseeker.ejoe.adapter
Interface SerializeAdapter

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
CastorAdapter, JavaBeansXmlAdapter, ObjectStreamAdapter, UTF8StringAdapter, XStreamAdapter

public interface SerializeAdapter
extends java.io.Serializable

Interface defining all methods required by a (de)serialize adapter.

Author:
netseeker aka Michael Manske

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
 

Method Detail

read

public java.lang.Object read(java.io.InputStream in)
                      throws java.io.IOException
Deserializes an object out of an given InputStream

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
Serializes an object into an output stream

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)
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.

Parameters:
classLoader -


Copyright © 2005-2006 netseeker. All Rights Reserved.