public class DataSourceCloser extends Object implements Destroyable
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 and Description |
|---|
DataSourceCloser(DataSource datasource) |
DataSourceCloser(DataSource datasource,
String shutdownSQL) |
public DataSourceCloser(DataSource datasource)
public DataSourceCloser(DataSource datasource, String shutdownSQL)
public void destroy()
destroy in interface DestroyableCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.