org.apache.naming.factory
Class EjbFactory

java.lang.Object
  extended by org.apache.naming.factory.EjbFactory
All Implemented Interfaces:
javax.naming.spi.ObjectFactory

public class EjbFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory

Object factory for EJBs.

Version:
$Revision: 123398 $ $Date: 2003/10/13 08:15:11 $
Author:
Remy Maucherat

Constructor Summary
EjbFactory()
           
 
Method Summary
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
          Create a new EJB instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbFactory

public EjbFactory()
Method Detail

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
Create a new EJB instance.

Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
Parameters:
obj - The reference object describing the EJB.
name - The name of this object relative to nameCtx, or null if no name is specified.
nameCtx - The context relative to which the name parameter is specified, or null if name is relative to the default initial context.
environment - The possibly null environment that is used in creating the object.
Returns:
The EJB instance created; null if an instance cannot be created.
Throws:
java.lang.Exception