public class DBPoolDataSourceFactory extends Object implements ObjectFactory
DBPoolDataSource class.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
SLF4J shared instance for writing log entries.
|
| Constructor and Description |
|---|
DBPoolDataSourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
Creates a
DBPoolDataSource instance using the location or reference information specified. |
protected static final org.slf4j.Logger logger
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
DBPoolDataSource instance using the location or reference information specified.
The ConnectionPool parameters are extracted from the obj
reference object.getObjectInstance in interface ObjectFactoryobj - Reference object containing information for creating the ConnectionPoolname - name of this object relative to nameCtx, or null if no name is specifiednameCtx - context relative to which the name parameter is specified, or null if name is relative to the default initial contextenvironment - possibly null environment that is used in creating the objectDBPoolDataSource instance as specified, or null if it cannot be found/created.Exception - if this object factory encountered an exception while attempting to create the DBPoolDataSource, and no other object factories are to be tried.Copyright © 2015. All rights reserved.