Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

Constructor Summary
`SerializableObjectFactory()`

Method Summary
`static Reference` | `createReference(Serializable object)` Create a reference for the given (Serializable) object.
`Object` | `getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SerializableObjectFactory

    public SerializableObjectFactory()

Method Detail

### 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)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012. All Rights Reserved.