|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jasper.runtime.TagHandlerPoolImpl
This class provides a basic implementation of TagHandlerPool. Its pooling strategy is to grow the pool so that a caller never has to wait for a tag handler. Therefore in the worst case, the pool size will be equal to the total number of concurently used tags (that are at the same reuse scope.) This implementation does not shrink the pool.
TagPoolManagerImpl
Constructor Summary | |
TagHandlerPoolImpl(java.lang.Class handlerClass,
java.lang.String poolName)
Create a TagHandlerPoolImpl that will store objects of the given class type |
Method Summary | |
javax.servlet.jsp.tagext.Tag |
getHandler()
Obtain a tag handler. |
void |
releaseHandler(javax.servlet.jsp.tagext.Tag usedTag,
boolean removeFromPool)
This method releases a tag handler obtained from getHandler. |
void |
shutdown()
This method performs pool shutdown. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TagHandlerPoolImpl(java.lang.Class handlerClass, java.lang.String poolName)
handlerClass
- tag handler classMethod Detail |
public javax.servlet.jsp.tagext.Tag getHandler()
getHandler
in interface TagHandlerPool
public void releaseHandler(javax.servlet.jsp.tagext.Tag usedTag, boolean removeFromPool)
releaseHandler
in interface TagHandlerPool
usedTag
- tag previously obtained from getHandlerremoveFromPool
- Set to true to remove handler from pool. One reason for this
is an exception during tag processing.public void shutdown()
shutdown
in interface TagHandlerPool
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |