org.jboss.ejb3
Class NonSerializableFactory
java.lang.Object
org.jboss.ejb3.NonSerializableFactory
- All Implemented Interfaces:
- ObjectFactory
public class NonSerializableFactory
- extends Object
- implements ObjectFactory
A utility class that allows one to bind a non-serializable object into a
local JNDI context. The binding will only be valid for the lifetime of the
VM in which the JNDI InitialContext lives. An example usage code snippet is:
Internally, there is a static map that is keyed based on Context identityMap and the atom name of the target
- Version:
- $Revision: 70079 $
- Author:
- Bill Burke., Scott Stark.
- See Also:
ObjectFactory
,
rebind(javax.naming.Context, String, Object)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonSerializableFactory
public NonSerializableFactory()
unbind
public static void unbind(Context ctx,
String strName)
throws NamingException
- Throws:
NamingException
rebind
public static void rebind(Context ctx,
String strName,
Object value)
throws NamingException
- Throws:
NamingException
bind
public static void bind(Context ctx,
String strName,
Object value)
throws NamingException
- Throws:
NamingException
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable env)
throws Exception
- Specified by:
getObjectInstance
in interface ObjectFactory
- Throws:
Exception
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.