|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 DataSourceRepository
jndiEnv
- configuration propertiespublic void register(DataSourceInformation information)
register
in interface DataSourceRepository
information
- DataSourceInformation instanceDataSourceRepository.register(DataSourceInformation)
public void unRegister(String name)
DataSourceRepository
unRegister
in interface DataSourceRepository
name
- name of the datasource to be removedpublic DataSource lookUp(String dsName)
lookUp
in interface DataSourceRepository
dsName
- Name of the DataSource to be looked up
DataSourceRepository.lookUp(String)
public void clear()
DataSourceRepository
clear
in interface DataSourceRepository
public boolean isInitialized()
DataSourceRepository
isInitialized
in interface DataSourceRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |