public class JndiDataSourceFactory extends AbstractDataSourceFactory
| Modifier and Type | Field and Description | 
|---|---|
| static String | CLASSNAME_KEYKey for the configuration property which contains the class name
  of the datasource to be bound into jndi. | 
| static String | DATASOURCE_KEYKey for the configuration which contains properties for a DataSource
 which should be bound into jndi. | 
| static String | JNDI_KEYKey for the configuration which contains jndi properties. | 
| static String | PATH_KEYKey for the configuration property which contains the jndi path. | 
| static String | TIME_BETWEEN_LOOKUPS_KEYKey for the configuration property which contains the
  time between two jndi lookups. | 
CONNECTION_KEY, DEFAULT_CONNECTION_KEY, DEFAULT_POOL_KEY, DEFAULTS_KEY, POOL_KEYDSFACTORY_KEY, FACTORY_KEY| Constructor and Description | 
|---|
| JndiDataSourceFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Does nothing. | 
| DataSource | getDataSource() | 
| void | initialize(org.apache.commons.configuration2.Configuration configuration)Initialize the factory. | 
applyConfiguration, initCPDS, initJdbc2Pool, setPropertypublic static final String JNDI_KEY
public static final String PATH_KEY
public static final String TIME_BETWEEN_LOOKUPS_KEY
public static final String DATASOURCE_KEY
public static final String CLASSNAME_KEY
public DataSource getDataSource() throws TorqueException
getDataSource in interface DataSourceFactorygetDataSource in class AbstractDataSourceFactoryDataSource configured by the factory.TorqueException - if the source can't be returnedDataSourceFactory.getDataSource()public void initialize(org.apache.commons.configuration2.Configuration configuration)
                throws TorqueException
AbstractDataSourceFactoryinitialize in interface DataSourceFactoryinitialize in class AbstractDataSourceFactoryconfiguration - where to load the factory settings fromTorqueException - Any exceptions caught during processing will be
         rethrown wrapped into a TorqueException.DataSourceFactory.initialize(org.apache.commons.configuration2.Configuration)public void close()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.