KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > snaq > util > ObjectPoolEventAdapter


1 /*
2     DBPool - JDBC Connection Pool Manager
3     Copyright (c) Giles Winstanley
4 */

5 package snaq.util;
6
7 /**
8  * Adapter implementation for handling PoolEvents for an ObjectPool.
9  * Provides null implementations of all listener methods so a sub-class can
10  * simply override the ones required.
11  * @author Giles Winstanley
12  */

13 public class ObjectPoolEventAdapter implements ObjectPoolListener
14 {
15     public void poolCheckIn(ObjectPoolEvent evt) {}
16     public void poolCheckOut(ObjectPoolEvent evt) {}
17     public void maxPoolLimitReached(ObjectPoolEvent evt) {}
18     public void maxPoolLimitExceeded(ObjectPoolEvent evt) {}
19     public void maxSizeLimitReached(ObjectPoolEvent evt) {}
20     public void maxSizeLimitError(ObjectPoolEvent evt) {}
21     public void poolParametersChanged(ObjectPoolEvent evt) {}
22     public void poolReleased(ObjectPoolEvent evt) {}
23 }
Popular Tags