|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.apache.jasper.runtime.TagHandlerPool
public class TagHandlerPool
Pool of tag handlers that can be reused.
| 字段摘要 | |
|---|---|
static String |
OPTION_MAXSIZE
|
static String |
OPTION_TAGPOOL
|
| 构造方法摘要 | |
|---|---|
TagHandlerPool()
Constructs a tag handler pool with the default capacity. |
|
TagHandlerPool(int capacity)
已过时。 Use static getTagHandlerPool |
|
| 方法摘要 | ||
|---|---|---|
|
get(Class<T> handlerClass)
Gets the next available tag handler from this tag handler pool, instantiating one if this tag handler pool is empty. |
|
protected static String |
getOption(ServletConfig config,
String name,
String defaultV)
|
|
static TagHandlerPool |
getTagHandlerPool(ServletConfig config)
|
|
protected void |
init(ServletConfig config)
|
|
void |
release()
Calls the release() method of all available tag handlers in this tag handler pool. |
|
void |
reuse(JspTag 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 |
| 字段详细信息 |
|---|
public static final String OPTION_TAGPOOL
public static final String OPTION_MAXSIZE
| 构造方法详细信息 |
|---|
public TagHandlerPool()
public TagHandlerPool(int capacity)
capacity - Tag handler pool capacity| 方法详细信息 |
|---|
public static TagHandlerPool getTagHandlerPool(ServletConfig config)
protected void init(ServletConfig config)
public <T extends JspTag> JspTag get(Class<T> handlerClass)
throws JspException
handlerClass - Tag handler class
JspException - if a tag handler cannot be instantiatedpublic void reuse(JspTag handler)
handler - JspTag handler to add to this tag handler poolpublic void release()
protected static String getOption(ServletConfig config,
String name,
String defaultV)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||