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

字段摘要
 
从类 org.apache.jasper.runtime.TagHandlerPool 继承的字段
OPTION_MAXSIZE, OPTION_TAGPOOL
 
构造方法摘要
PerThreadTagHandlerPool()
          Constructs a tag handler pool with the default capacity.
 
方法摘要
 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.
 
从类 org.apache.jasper.runtime.TagHandlerPool 继承的方法
getOption, getTagHandlerPool, reuse
 
从类 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.