Package org.cyclos.bootstrap
Class JndiDataSourceProvider
- java.lang.Object
-
- org.cyclos.bootstrap.JndiDataSourceProvider
-
- All Implemented Interfaces:
DataSourceProvider,CustomBean
public class JndiDataSourceProvider extends Object implements DataSourceProvider
Implementation forDataSourceProviderwhich gets an application serverDataSourcevia JNDI lookup
-
-
Constructor Summary
Constructors Constructor Description JndiDataSourceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSourcecreate(Properties properties)Create a newDataSourceusing the given configuration propertiesvoiddestroy(DataSource dataSource)Destroy the givenDataSource, releasing resources
-
-
-
Method Detail
-
create
public DataSource create(Properties properties) throws Exception
Description copied from interface:DataSourceProviderCreate a newDataSourceusing the given configuration properties- Specified by:
createin interfaceDataSourceProvider- Throws:
Exception
-
destroy
public void destroy(DataSource dataSource) throws Exception
Description copied from interface:DataSourceProviderDestroy the givenDataSource, releasing resources- Specified by:
destroyin interfaceDataSourceProvider- Throws:
Exception
-
-