public class DataSourceLinkFactory extends ResourceLinkFactory
Object factory for resource links for shared data sources.
| Modifier and Type | Class and Description | 
|---|---|
| static class  | DataSourceLinkFactory.DataSourceHandlerSimple wrapper class that will allow a user to configure a ResourceLink for a data source
so that when  DataSource.getConnection()is called, it will invokeDataSource.getConnection(String, String)with the preconfigured username and password. | 
| Constructor and Description | 
|---|
| DataSourceLinkFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)Create a new DataSource instance. | 
| static void | setGlobalContext(javax.naming.Context newGlobalContext) | 
| protected java.lang.Object | wrapDataSource(java.lang.Object datasource,
java.lang.String username,
java.lang.String password) | 
public static void setGlobalContext(javax.naming.Context newGlobalContext)
public java.lang.Object getObjectInstance(java.lang.Object obj,
                                 javax.naming.Name name,
                                 javax.naming.Context nameCtx,
                                 java.util.Hashtable<?,?> environment)
                                   throws javax.naming.NamingException
getObjectInstance in interface javax.naming.spi.ObjectFactorygetObjectInstance in class ResourceLinkFactoryobj - The reference object describing the DataSourcejavax.naming.NamingExceptionprotected java.lang.Object wrapDataSource(java.lang.Object datasource,
                              java.lang.String username,
                              java.lang.String password)
                                   throws javax.naming.NamingException
javax.naming.NamingExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.