public class JNDIBasedDataSourceRepository extends Object implements DataSourceRepository
Constructor and Description |
---|
JNDIBasedDataSourceRepository() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear already registered datasources
|
void |
init(Properties jndiEnv)
Initialization with given properties
|
boolean |
isInitialized()
Explicitly check for init
|
DataSource |
lookUp(String dsName)
Get a DatSource which has been registered in the JNDI tree
|
void |
register(DataSourceInformation information)
Register a DataSource in the JNDI tree
|
void |
unRegister(String name)
Removing datasource
|
public void init(Properties jndiEnv)
DataSourceRepository
init
in interface DataSourceRepository
jndiEnv
- configuration propertiespublic void register(DataSourceInformation information)
register
in interface DataSourceRepository
information
- DataSourceInformation instanceDataSourceRepository.register(DataSourceInformation)
public void unRegister(String name)
DataSourceRepository
unRegister
in interface DataSourceRepository
name
- name of the datasource to be removedpublic DataSource lookUp(String dsName)
lookUp
in interface DataSourceRepository
dsName
- Name of the DataSource to be looked upDataSourceRepository.lookUp(String)
public void clear()
DataSourceRepository
clear
in interface DataSourceRepository
public boolean isInitialized()
DataSourceRepository
isInitialized
in interface DataSourceRepository
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.