public class JndiProxyDataSourceFactory extends Object implements ObjectFactory
| Modifier and Type | Field and Description |
|---|---|
protected ObjectFactory |
parentFactory |
| Constructor and Description |
|---|
JndiProxyDataSourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Reference |
createReference(JndiProxyDataSource jndiProxyDataSource)
Creates a reference that can re-construct the proxied datasource.
|
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment) |
protected ObjectFactory parentFactory
public static Reference createReference(JndiProxyDataSource jndiProxyDataSource) throws NamingException
jndiProxyDataSource - The datasource to reference.NamingException - In case of the parten reference failed to get created.public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
getObjectInstance in interface ObjectFactoryExceptionCopyright © 2013. All Rights Reserved.