public class PerThreadTagHandlerPool extends TagHandlerPool
OPTION_MAXSIZE, OPTION_TAGPOOL| Constructor | Description |
|---|---|
PerThreadTagHandlerPool() |
Constructs a tag handler pool with the default capacity.
|
| Modifier and Type | Method | Description |
|---|---|---|
javax.servlet.jsp.tagext.Tag |
get(Class handlerClass) |
Gets the next available tag handler from this tag handler pool,
instantiating one if this tag handler pool is empty.
|
protected void |
init(javax.servlet.ServletConfig config) |
|
void |
release() |
Calls the release() method of all tag handlers in this tag handler pool.
|
void |
reuse(javax.servlet.jsp.tagext.Tag handler) |
Adds the given tag handler to this tag handler pool, unless this tag
handler pool has already reached its capacity, in which case the tag
handler's release() method is called.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOption, getTagHandlerPool, reusepublic PerThreadTagHandlerPool()
protected void init(javax.servlet.ServletConfig config)
init in class TagHandlerPoolpublic javax.servlet.jsp.tagext.Tag get(Class handlerClass) throws javax.servlet.jsp.JspException
get in class TagHandlerPoolhandlerClass - Tag handler classjavax.servlet.jsp.JspException - if a tag handler cannot be instantiatedpublic void reuse(javax.servlet.jsp.tagext.Tag handler)
handler - Tag handler to add to this tag handler poolpublic void release()
release in class TagHandlerPoolCopyright © 2019 Oracle. All rights reserved.