|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 DataSourceRepositorydataSourceInformation - the information describing a data sourceDataSourceRepository.register(DataSourceInformation)public void unRegister(String name)
DataSourceRepository
unRegister in interface DataSourceRepositoryname - name of the datasource to be removedpublic DataSource lookUp(String name)
lookUp in interface DataSourceRepositoryname - Name of the DataSoure to be looked up
DataSourceRepository.lookUp(String)public void init(Properties properties)
DataSourceRepository
init in interface DataSourceRepositoryproperties - configuration propertiespublic boolean isInitialized()
DataSourceRepository
isInitialized in interface DataSourceRepositorypublic void clear()
DataSourceRepository
clear in interface DataSourceRepository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||