org.objectweb.easybeans.rpc
Class LocalCallFactory
java.lang.Object
org.objectweb.easybeans.rpc.LocalCallFactory
- All Implemented Interfaces:
- javax.naming.spi.ObjectFactory
public class LocalCallFactory
- extends java.lang.Object
- implements javax.naming.spi.ObjectFactory
Factory creating an EJB proxy for local calls.
- Author:
- Florent Benoit.
Method Summary |
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalCallFactory
public LocalCallFactory()
getObjectInstance
public java.lang.Object getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
throws java.lang.Exception
- Specified by:
getObjectInstance
in interface javax.naming.spi.ObjectFactory
- Parameters:
obj
- the reference containing data to build instancename
- Name of context, relative to ctx, or null.nameCtx
- Context relative to which 'name' is named.environment
- Environment to use when creating the context *
- Returns:
- an instance of a proxy (an EJB) that handle local calls.
- Throws:
java.lang.Exception
- if this object factory encountered an exception while
attempting to create an object, and no other object factories are
to be tried.