Package org.eclipse.jetty.jndi
Class DataSourceCloser
- java.lang.Object
-
- org.eclipse.jetty.jndi.DataSourceCloser
-
- All Implemented Interfaces:
Destroyable
public class DataSourceCloser extends java.lang.Object implements Destroyable
Close a DataSource. SomeDataSource
's need to be close (eg. Atomikos). This bean is aDestroyable
and may be added to anyContainerLifeCycle
so thatdestroy()
will be called. Thedestroy()
method calls any no-arg method called "close" on the passed DataSource.
-
-
Constructor Summary
Constructors Constructor Description DataSourceCloser(javax.sql.DataSource datasource)
DataSourceCloser(javax.sql.DataSource datasource, java.lang.String shutdownSQL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
-
-
-
Method Detail
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceDestroyable
-
-