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