com.googlecode.jdbw
Interface DataSourceCloser


public interface DataSourceCloser

This interface is used for closing a DataSource. Since the DataSource interface doesn't expose any close method, we need to delegate closing it to an external object. Normally, this object would be the same that both creates and closes data sources, so it knows that implementation of DataSource that is used.

Author:
Martin Berglund

Method Summary
 void closeDataSource(DataSource dataSource)
          Called when a data source should be closed, trusting the implementing class knows how to close the data source
 

Method Detail

closeDataSource

void closeDataSource(DataSource dataSource)
Called when a data source should be closed, trusting the implementing class knows how to close the data source

Parameters:
dataSource - Data source to close


Copyright © 2012. All Rights Reserved.