org.apache.naming.factory
Class DataSourceLinkFactory
java.lang.Object
org.apache.naming.factory.ResourceLinkFactory
org.apache.naming.factory.DataSourceLinkFactory
- All Implemented Interfaces:
- ObjectFactory
public class DataSourceLinkFactory
- extends ResourceLinkFactory
Object factory for resource links for shared data sources.
- Author:
- Filip Hanik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceLinkFactory
public DataSourceLinkFactory()
setGlobalContext
public static void setGlobalContext(Context newGlobalContext)
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
throws NamingException
- Create a new DataSource instance.
- Specified by:
getObjectInstance
in interface ObjectFactory
- Overrides:
getObjectInstance
in class ResourceLinkFactory
- Parameters:
obj
- The reference object describing the DataSource
- Throws:
NamingException
wrapDataSource
protected Object wrapDataSource(Object datasource,
String username,
String password)
throws NamingException
- Throws:
NamingException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.