Top Description Fields Constructors Methods
org.eclipse.jetty.plus.jndi

public Class DataSourceCloser

extends Object
implements Destroyable
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.util.component.Destroyable
Imports
java.lang.reflect.Method, java.sql.Connection, .Statement, javax.sql.DataSource, org.eclipse.jetty.util.component.ContainerLifeCycle, .Destroyable, org.slf4j.Logger, .LoggerFactory

Close a DataSource. Some DataSource's need to be close (eg. Atomikos). This bean is a Destroyable and may be added to any ContainerLifeCycle so that destroy() will be called. The destroy() method calls any no-arg method called "close" on the passed DataSource.

Field Summary

Modifier and TypeField and Description
pack-priv final DataSource
pack-priv final String
private static final Logger

Constructor Summary

AccessConstructor and Description
public
public
DataSourceCloser(DataSource datasource, String shutdownSQL)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_datasourceback to summary
pack-priv final DataSource _datasource
_shutdownback to summary
pack-priv final String _shutdown
LOGback to summary
private static final Logger LOG

Constructor Detail

DataSourceCloserback to summary
public DataSourceCloser(DataSource datasource)
DataSourceCloserback to summary
public DataSourceCloser(DataSource datasource, String shutdownSQL)

Method Detail

destroyback to summary
public void destroy()

Implements org.eclipse.jetty.util.component.Destroyable.destroy.

Annotations
@Override