|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.synapse.commons.datasource.JNDIBasedDataSourceRepository
public class JNDIBasedDataSourceRepository
Keep all DataSources in the JNDI Tree
| Constructor Summary | |
|---|---|
JNDIBasedDataSourceRepository()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JNDIBasedDataSourceRepository()
| Method Detail |
|---|
public void init(Properties jndiEnv)
DataSourceRepository
init in interface DataSourceRepositoryjndiEnv - configuration propertiespublic void register(DataSourceInformation information)
register in interface DataSourceRepositoryinformation - DataSourceInformation instanceDataSourceRepository.register(DataSourceInformation)public void unRegister(String name)
DataSourceRepository
unRegister in interface DataSourceRepositoryname - name of the datasource to be removedpublic DataSource lookUp(String dsName)
lookUp in interface DataSourceRepositorydsName - Name of the DataSoure to be looked up
DataSourceRepository.lookUp(String)public void clear()
DataSourceRepository
clear in interface DataSourceRepositorypublic boolean isInitialized()
DataSourceRepository
isInitialized in interface DataSourceRepository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||