|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.webapp.AbstractConfiguration
org.eclipse.jetty.webapp.TagLibConfiguration
public class TagLibConfiguration
TagLibConfiguration. The class searches for TLD descriptors found in web.xml, in WEB-INF/*.tld files of the web app or *.tld files within jars found in WEB-INF/lib of the webapp. Any listeners defined in these tld's are added to the context. <bile>This is total rubbish special case for JSPs! If there was a general use-case for web app frameworks to register listeners directly, then a generic mechanism could have been added to the servlet spec. Instead some special purpose JSP support is required that breaks all sorts of encapsulation rules as the servlet container must go searching for and then parsing the descriptors for one particular framework. It only appears to be used by JSF, which is being developed by the same developer who implemented this feature in the first place! </bile> Note- this has been superceded by the new TldScanner in jasper which uses ServletContainerInitializer to find all the listeners in tag libs and register them.
| 嵌套类摘要 | |
|---|---|
class |
TagLibConfiguration.TagLibListener
TagLibListener A listener that does the job of finding .tld files that contain (other) listeners that need to be called by the servlet container. |
static class |
TagLibConfiguration.TldDescriptor
TldDescriptor |
class |
TagLibConfiguration.TldProcessor
TldProcessor Process TldDescriptors representing tag libs to find listeners. |
| 字段摘要 | |
|---|---|
static String |
TLD_RESOURCES
|
| 构造方法摘要 | |
|---|---|
TagLibConfiguration()
|
|
| 方法摘要 | |
|---|---|
void |
cloneConfigure(WebAppContext template,
WebAppContext context)
Clone configuration instance. |
void |
configure(WebAppContext context)
Configure WebApp. |
void |
deconfigure(WebAppContext context)
DeConfigure WebApp. |
void |
postConfigure(WebAppContext context)
Clear down after configuration. |
void |
preConfigure(WebAppContext context)
Set up for configuration. |
| 从类 org.eclipse.jetty.webapp.AbstractConfiguration 继承的方法 |
|---|
destroy |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final String TLD_RESOURCES
| 构造方法详细信息 |
|---|
public TagLibConfiguration()
| 方法详细信息 |
|---|
public void preConfigure(WebAppContext context)
throws Exception
Configuration 复制的描述Typically this step discovers configuration resources
Configuration 中的 preConfigureAbstractConfiguration 中的 preConfigurecontext - The context to configure
Exception
public void configure(WebAppContext context)
throws Exception
Configuration 复制的描述
Typically this step applies the discovered configuration resources to
either the WebAppContext or the associated MetaData.
Configuration 中的 configureAbstractConfiguration 中的 configurecontext - The context to configure
Exception
public void postConfigure(WebAppContext context)
throws Exception
Configuration 复制的描述
Configuration 中的 postConfigureAbstractConfiguration 中的 postConfigurecontext - The context to configure
Exception
public void cloneConfigure(WebAppContext template,
WebAppContext context)
throws Exception
Configuration 复制的描述Configure an instance of a WebAppContext, based on a template WebAppContext that has previously been configured by this Configuration.
Configuration 中的 cloneConfigureAbstractConfiguration 中的 cloneConfiguretemplate - The template contextcontext - The context to configure
Exception
public void deconfigure(WebAppContext context)
throws Exception
Configuration 复制的描述
Configuration 中的 deconfigureAbstractConfiguration 中的 deconfigurecontext - The context to configure
Exception
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||