Package org.apache.catalina.users
Class DataSourceUserDatabaseFactory
- java.lang.Object
- 
- org.apache.catalina.users.DataSourceUserDatabaseFactory
 
- 
- All Implemented Interfaces:
- javax.naming.spi.ObjectFactory
 
 public class DataSourceUserDatabaseFactory extends java.lang.Object implements javax.naming.spi.ObjectFactoryJNDI object creation factory for DataSourceUserDatabaseinstances. This makes it convenient to configure a user database in the global JNDI resources associated with this Catalina instance, and then link to that resource for web applications that administer the contents of the user database.The DataSourceUserDatabaseinstance is configured based on the following parameter values:- dataSourceName - JNDI name of the DataSource, which must be located in the same Context environment as the UserDatabase
 - Author:
- Craig R. McClanahan
 
- 
- 
Constructor SummaryConstructors Constructor Description DataSourceUserDatabaseFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,?> environment)Create and return a newDataSourceUserDatabaseinstance that has been configured according to the properties of the specifiedReference.
 
- 
- 
- 
Method Detail- 
getObjectInstancepublic java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable<?,?> environment) throws java.lang.ExceptionCreate and return a new DataSourceUserDatabaseinstance that has been configured according to the properties of the specifiedReference. If you instance can be created, returnnullinstead.- Specified by:
- getObjectInstancein interface- javax.naming.spi.ObjectFactory
- Parameters:
- obj- The possibly null object containing location or reference information that can be used in creating an object
- name- The name of this object relative to- nameCtx
- nameCtx- The context relative to which the- nameparameter is specified, or- nullif- nameis relative to the default initial context
- environment- The possibly null environment that is used in creating this object
- Throws:
- java.lang.Exception
 
 
- 
 
-