org.ow2.jonas.lib.ejb21
Class HomeFactory
java.lang.Object
org.ow2.jonas.lib.ejb21.HomeFactory
- All Implemented Interfaces:
- ObjectFactory
public class HomeFactory
- extends Object
- implements ObjectFactory
This Factory return Home or LocalHome objects to clients.
No need to use it in case of RMI Remote Home because Remote References are
registered directly in JNDI.
This class should be used only for local Home or ServiceEndpointHome
- Author:
- Guillaume Riviere (Inria)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HomeFactory
public HomeFactory()
getObjectInstance
public Object getObjectInstance(Object refObj,
Name name,
Context nameCtx,
Hashtable env)
throws Exception
- Used in case of local Home or ServiceEndpointHome
- Specified by:
getObjectInstance
in interface ObjectFactory
- Parameters:
refObj
- - The possibly null object containing location or reference
information that can be used in creating an object.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.env
- - The possibly null environment that is used in creating the object.
- Returns:
- ServiceEndpointHome or LocalHome object
- Throws:
Exception
- - if this object factory encountered an exception while attempting
to create an object, and no other object factories are to be tried.
Copyright © 2010 OW2 Consortium. All Rights Reserved.