|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.commons.datasource.InMemoryDataSourceRepository
public class InMemoryDataSourceRepository
Keeps all DataSources in the memory
Constructor Summary | |
---|---|
InMemoryDataSourceRepository()
|
Method Summary | |
---|---|
void |
clear()
Clear already registered datasources |
void |
init(Properties properties)
Initialization with given properties |
boolean |
isInitialized()
Explicitly check for init |
DataSource |
lookUp(String name)
Get a DataSource from Local store |
void |
register(DataSourceInformation dataSourceInformation)
Keep DataSource in the Local store. |
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 InMemoryDataSourceRepository()
Method Detail |
---|
public void register(DataSourceInformation dataSourceInformation)
register
in interface DataSourceRepository
dataSourceInformation
- the information describing a data sourceDataSourceRepository.register(DataSourceInformation)
public void unRegister(String name)
DataSourceRepository
unRegister
in interface DataSourceRepository
name
- name of the datasource to be removedpublic DataSource lookUp(String name)
lookUp
in interface DataSourceRepository
name
- Name of the DataSource to be looked up
DataSourceRepository.lookUp(String)
public void init(Properties properties)
DataSourceRepository
init
in interface DataSourceRepository
properties
- configuration propertiespublic boolean isInitialized()
DataSourceRepository
isInitialized
in interface DataSourceRepository
public void clear()
DataSourceRepository
clear
in interface DataSourceRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |