PooliT v2.0

org.ascentphase.poolit.handlers
Class BaseHandler

java.lang.Object
  extended byorg.ascentphase.poolit.handlers.BaseHandler
All Implemented Interfaces:
PoolHandler
Direct Known Subclasses:
InitialContextHandler, NoArgHandler

public abstract class BaseHandler
extends java.lang.Object
implements PoolHandler

This is a convenience base class for PoolHandler. This class defines an empty destroy() method and a verify() method that always returns true.

Author:
Huy Duong

Constructor Summary
BaseHandler()
           
 
Method Summary
abstract  java.lang.Object create()
          Called by a Pooler to create a new object.
 void destroy(java.lang.Object o)
          Called by a Pooler to perform any cleanup and destroy the object for garbage collection.
 boolean verify(java.lang.Object o)
          Called by a Pooler to verify that the object is in a consistent and useable state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseHandler

public BaseHandler()
Method Detail

create

public abstract java.lang.Object create()
                                 throws CreateException
Description copied from interface: PoolHandler
Called by a Pooler to create a new object.

Specified by:
create in interface PoolHandler
Throws:
CreateException

destroy

public void destroy(java.lang.Object o)
Description copied from interface: PoolHandler
Called by a Pooler to perform any cleanup and destroy the object for garbage collection.

Specified by:
destroy in interface PoolHandler
Parameters:
o - the object to be destroyed

verify

public boolean verify(java.lang.Object o)
Description copied from interface: PoolHandler
Called by a Pooler to verify that the object is in a consistent and useable state.

Specified by:
verify in interface PoolHandler
Parameters:
o - the object to be tested

PooliT v2.0

Copyright © 2005 Ascent Phase Corp.