com.atomikos.util
Class SerializableObjectFactory
java.lang.Object
com.atomikos.util.SerializableObjectFactory
- All Implemented Interfaces:
- ObjectFactory
public class SerializableObjectFactory
- extends Object
- implements ObjectFactory
A default object factory for serializable objects that
need to be bound in JNDI.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializableObjectFactory
public SerializableObjectFactory()
createReference
public static Reference createReference(Serializable object)
throws NamingException
- Create a reference for the given (Serializable) object.
- Parameters:
object
- The object to create a reference for.
- Returns:
- Reference The reference that can be bound
in JNDI and used along with this factory class to
reconstruct the original object.
- Throws:
NamingException
- On failure.
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable environment)
throws Exception
- Specified by:
getObjectInstance
in interface ObjectFactory
- Throws:
Exception
- See Also:
ObjectFactory.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)
Copyright © 2011. All Rights Reserved.