| java.lang.Object org.objectweb.jonas_ejb.container.HomeFactory
HomeFactory | public class HomeFactory implements ObjectFactory(Code) | | 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) |
Method Summary | |
public Object | getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env) Used in case of local Home or ServiceEndpointHome
Parameters: refObj - - The possibly null object containing location or referenceinformation that can be used in creating an object. Parameters: name - - The name of this object relative to nameCtx, or null if no name is specified. Parameters: nameCtx - - The context relative to which the name parameter is specified,or null if name is relative to the default initial context. Parameters: env - - The possibly null environment that is used in creating the object. |
getObjectInstance | public Object getObjectInstance(Object refObj, Name name, Context nameCtx, Hashtable env) throws Exception(Code) | | Used in case of local Home or ServiceEndpointHome
Parameters: refObj - - The possibly null object containing location or referenceinformation that can be used in creating an object. Parameters: name - - The name of this object relative to nameCtx, or null if no name is specified. Parameters: nameCtx - - The context relative to which the name parameter is specified,or null if name is relative to the default initial context. Parameters: env - - The possibly null environment that is used in creating the object. ServiceEndpointHome or LocalHome object throws: Exception - - if this object factory encountered an exception while attemptingto create an object, and no other object factories are to be tried. |
|
|