public class JNDIBasedDataSourceRepository extends Object implements DataSourceRepository
| Constructor and Description | 
|---|
JNDIBasedDataSourceRepository()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Clear already registered datasources 
 | 
void | 
init(Properties jndiEnv)
Initialization with given properties 
 | 
boolean | 
isInitialized()
Explicitly check for init 
 | 
DataSource | 
lookUp(String dsName)
Get a DatSource which has been registered in the JNDI tree 
 | 
void | 
register(DataSourceInformation information)
Register a DataSource in the JNDI tree 
 | 
void | 
unRegister(String name)
Removing datasource 
 | 
public void init(Properties jndiEnv)
DataSourceRepositoryinit in interface DataSourceRepositoryjndiEnv - configuration propertiespublic void register(DataSourceInformation information)
register in interface DataSourceRepositoryinformation - DataSourceInformation instanceDataSourceRepository.register(DataSourceInformation)public void unRegister(String name)
DataSourceRepositoryunRegister in interface DataSourceRepositoryname - name of the datasource to be removedpublic DataSource lookUp(String dsName)
lookUp in interface DataSourceRepositorydsName - Name of the DataSource to be looked upDataSourceRepository.lookUp(String)public void clear()
DataSourceRepositoryclear in interface DataSourceRepositorypublic boolean isInitialized()
DataSourceRepositoryisInitialized in interface DataSourceRepositoryCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.