|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jetty.jndi.DataSourceCloser
public class DataSourceCloser
Close a DataSource.
Some DataSource
's need to be close (eg. Atomikos). This bean is a Destroyable
and
may be added to any AggregateLifeCycle
so that destroy()
will be called. The destroy()
method calls any no-arg method called "close" on the passed DataSource.
Constructor Summary | |
---|---|
DataSourceCloser(javax.sql.DataSource datasource)
|
|
DataSourceCloser(javax.sql.DataSource datasource,
java.lang.String shutdownSQL)
|
Method Summary | |
---|---|
void |
destroy()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataSourceCloser(javax.sql.DataSource datasource)
public DataSourceCloser(javax.sql.DataSource datasource, java.lang.String shutdownSQL)
Method Detail |
---|
public void destroy()
destroy
in interface Destroyable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |