| java.lang.Object org.ow2.easybeans.component.jdbcpool.DataSourceFactory
DataSourceFactory | public class DataSourceFactory implements ObjectFactory(Code) | | Class which is used for binding the ConnectionManager object. getReference()
method of ConnectionManager redirect to this class. The getObjectInstance()
method will be called for the JNDI lookup
author: Florent Benoit |
Method Summary | |
public Object | getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) Creates an object using the location or reference information specified.
It gets a connection manager of this server.
Parameters: obj - 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 relativeto the default initial context. Parameters: environment - The possibly null environment that is used in creatingthe object. |
getObjectInstance | public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception(Code) | | Creates an object using the location or reference information specified.
It gets a connection manager of this server.
Parameters: obj - 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 relativeto the default initial context. Parameters: environment - The possibly null environment that is used in creatingthe object. The object created; null if an object cannot be created. throws: Exception - if this object factory encountered an exception whileattempting to create an object, and no other object factories areto be tried. |
|
|