public class InMemoryDataSourceRepository extends Object implements DataSourceRepository
Constructor and Description |
---|
InMemoryDataSourceRepository() |
Modifier and Type | Method and Description |
---|---|
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
|
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 upDataSourceRepository.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
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.