Class JNDIBasedDataSourceRepository
java.lang.Object
org.apache.synapse.commons.datasource.JNDIBasedDataSourceRepository
- All Implemented Interfaces:
DataSourceRepository
Keep all DataSources in the JNDI Tree
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear already registered datasourcesvoidinit(Properties jndiEnv) Initialization with given propertiesbooleanExplicitly check for initGet a DatSource which has been registered in the JNDI treevoidregister(DataSourceInformation information) Register a DataSource in the JNDI treevoidunRegister(String name) Removing datasource
-
Constructor Details
-
JNDIBasedDataSourceRepository
public JNDIBasedDataSourceRepository()
-
-
Method Details
-
init
Description copied from interface:DataSourceRepositoryInitialization with given properties- Specified by:
initin interfaceDataSourceRepository- Parameters:
jndiEnv- configuration properties
-
register
Register a DataSource in the JNDI tree- Specified by:
registerin interfaceDataSourceRepository- Parameters:
information- DataSourceInformation instance- See Also:
-
unRegister
Description copied from interface:DataSourceRepositoryRemoving datasource- Specified by:
unRegisterin interfaceDataSourceRepository- Parameters:
name- name of the datasource to be removed
-
lookUp
Get a DatSource which has been registered in the JNDI tree- Specified by:
lookUpin interfaceDataSourceRepository- Parameters:
dsName- Name of the DataSource to be looked up- Returns:
- DataSource Instance
- See Also:
-
clear
public void clear()Description copied from interface:DataSourceRepositoryClear already registered datasources- Specified by:
clearin interfaceDataSourceRepository
-
isInitialized
public boolean isInitialized()Description copied from interface:DataSourceRepositoryExplicitly check for init- Specified by:
isInitializedin interfaceDataSourceRepository- Returns:
- True , if has already initialized
-