public class InMemoryDataSourceRepository extends java.lang.Object implements DataSourceRepository
Constructor and Description |
---|
InMemoryDataSourceRepository() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear already registered datasources
|
void |
init(java.util.Properties properties)
Initialization with given properties
|
boolean |
isInitialized()
Explicitly check for init
|
javax.sql.DataSource |
lookUp(java.lang.String name)
Get a DataSource from Local store
|
void |
register(DataSourceInformation dataSourceInformation)
Keep DataSource in the Local store.
|
void |
unRegister(java.lang.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(java.lang.String name)
DataSourceRepository
unRegister
in interface DataSourceRepository
name
- name of the datasource to be removedpublic javax.sql.DataSource lookUp(java.lang.String name)
lookUp
in interface DataSourceRepository
name
- Name of the DataSource to be looked upDataSourceRepository.lookUp(String)
public void init(java.util.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-2022 Apache Software Foundation. All Rights Reserved.