public class JndiDataSourceFactory extends Object implements DataSourceFactory
DSFACTORY_KEY, FACTORY_KEY
Constructor and Description |
---|
JndiDataSourceFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Does nothing.
|
DataSource |
getDataSource() |
String |
getName() |
void |
initialize(JDBCDiskCacheAttributes config)
Initialize the factory.
|
public JndiDataSourceFactory()
public String getName()
getName
in interface DataSourceFactory
public DataSource getDataSource() throws SQLException
getDataSource
in interface DataSourceFactory
DataSource
configured by the factory.SQLException
- if the source can't be returnedDataSourceFactory.getDataSource()
public void initialize(JDBCDiskCacheAttributes config) throws SQLException
DataSourceFactory
initialize
in interface DataSourceFactory
config
- the factory settingsSQLException
- Any exceptions caught during processing will be
rethrown wrapped into a SQLException.DataSourceFactory.initialize(JDBCDiskCacheAttributes)
public void close()
close
in interface DataSourceFactory
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.