org.apache.turbine.util.pool
Interface InitableRecyclable

All Superinterfaces:
Recyclable

public interface InitableRecyclable
extends Recyclable

An interface for objects that can be pooled and recycled several times by different clients. Pooled objects that implement this interface use no argument ctor and recycle methods. Initialization is taken care of using the init method. This is a way to avoid introspection/reflection when pooling an object.

Version:
$Id: InitableRecyclable.java 534527 2007-05-02 16:10:59Z tv $
Author:
John McNally

Method Summary
 void init(java.lang.Object initObj)
          This method should be called after retrieving the object from the pool.
 
Methods inherited from interface org.apache.turbine.util.pool.Recyclable
dispose, isDisposed, recycle
 

Method Detail

init

public void init(java.lang.Object initObj)
          throws TurbineException
This method should be called after retrieving the object from the pool.

Throws:
TurbineException


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.