kaos.kpat.persist
Class JNDISerialObject

java.lang.Object
  extended by kaos.kpat.persist.JNDISerialObject
All Implemented Interfaces:
javax.naming.Referenceable

public class JNDISerialObject
extends java.lang.Object
implements javax.naming.Referenceable

A JNDI "Referenceable" object that can be used to store any Serializable object into any JDNI Service Provider that supports 'Referencable' storage. (Such as the FSContext service provider, which does not directly support Serializable).

See Also:
"KAoS Agent Programmers Guide"

Requires:

Modifications:

$Revision: 1.1.1.1 $


Constructor Summary
JNDISerialObject(java.lang.Object objectToStore)
          Constructor
 
Method Summary
 javax.naming.Reference getReference()
          Frankly, I based this code on Alex Wong's, and I don't know exactly what this method does.
 java.lang.String toString()
          For prettyprinting - sorta.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JNDISerialObject

public JNDISerialObject(java.lang.Object objectToStore)
Constructor

Method Detail

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
Frankly, I based this code on Alex Wong's, and I don't know exactly what this method does. But it works! :-)

Specified by:
getReference in interface javax.naming.Referenceable
Throws:
javax.naming.NamingException

toString

public java.lang.String toString()
For prettyprinting - sorta.

Overrides:
toString in class java.lang.Object