org.apache.jasper.runtime
类 PerThreadTagHandlerPool
java.lang.Object
org.apache.jasper.runtime.TagHandlerPool
org.apache.jasper.runtime.PerThreadTagHandlerPool
public class PerThreadTagHandlerPool
- extends TagHandlerPool
Thread-local based pool of tag handlers that can be reused.
- 作者:
- Jan Luehe, Costin Manolache
|
方法摘要 |
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(ServletConfig config)
|
void |
release()
Calls the release() method of all tag handlers in this tag handler pool. |
void |
reuse(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. |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerThreadTagHandlerPool
public PerThreadTagHandlerPool()
- Constructs a tag handler pool with the default capacity.
init
protected void init(ServletConfig config)
- 覆盖:
- 类
TagHandlerPool 中的 init
get
public Tag get(Class handlerClass)
throws JspException
- Gets the next available tag handler from this tag handler pool,
instantiating one if this tag handler pool is empty.
- 覆盖:
- 类
TagHandlerPool 中的 get
- 参数:
handlerClass - Tag handler class
- 返回:
- Reused or newly instantiated tag handler
- 抛出:
JspException - if a tag handler cannot be instantiated
reuse
public void reuse(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.
- 参数:
handler - Tag handler to add to this tag handler pool
release
public void release()
- Calls the release() method of all tag handlers in this tag handler pool.
- 覆盖:
- 类
TagHandlerPool 中的 release
Copyright © 2013. All Rights Reserved.