org.apache.jasper.runtime
Interface TagHandlerPool

All Known Implementing Classes:
TagHandlerPoolImpl

public interface TagHandlerPool

This interface allows pooling of tag handlers.

Author:
Casey Lucas
See Also:
TagPoolManager

Method Summary
 javax.servlet.jsp.tagext.Tag getHandler()
          This method is called by JSPs to obtain a tag handler.
 void releaseHandler(javax.servlet.jsp.tagext.Tag usedTag, boolean removeFromPool)
          This method is called by JSPs when they are finished using a tag handler obtained from getHandler
 void shutdown()
          This method is called to shutdown this pool.
 

Method Detail

getHandler

public javax.servlet.jsp.tagext.Tag getHandler()
This method is called by JSPs to obtain a tag handler.
Returns:
Tag handler appropriate for this pool

releaseHandler

public void releaseHandler(javax.servlet.jsp.tagext.Tag usedTag,
                           boolean removeFromPool)
This method is called by JSPs when they are finished using a tag handler obtained from getHandler
Parameters:
usedTag -  
removeFromPool - Set to true if this handler should be removed from the pool. This might occur if an exception is thrown during tag usage.

shutdown

public void shutdown()
This method is called to shutdown this pool. It is normally called by TagPoolManager.shutdown. It should perform cleanup and call Tag.release for any stored tags.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.