org.eclipse.jetty.webapp
类 TagLibConfiguration

java.lang.Object
  继承者 org.eclipse.jetty.webapp.AbstractConfiguration
      继承者 org.eclipse.jetty.webapp.TagLibConfiguration
所有已实现的接口:
Configuration

public class TagLibConfiguration
extends AbstractConfiguration

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
 

字段详细信息

TLD_RESOURCES

public static final String TLD_RESOURCES
另请参见:
常量字段值
构造方法详细信息

TagLibConfiguration

public TagLibConfiguration()
方法详细信息

preConfigure

public void preConfigure(WebAppContext context)
                  throws Exception
从接口 Configuration 复制的描述
Set up for configuration.

Typically this step discovers configuration resources

指定者:
接口 Configuration 中的 preConfigure
覆盖:
AbstractConfiguration 中的 preConfigure
参数:
context - The context to configure
抛出:
Exception

configure

public void configure(WebAppContext context)
               throws Exception
从接口 Configuration 复制的描述
Configure WebApp.

Typically this step applies the discovered configuration resources to either the WebAppContext or the associated MetaData.

指定者:
接口 Configuration 中的 configure
覆盖:
AbstractConfiguration 中的 configure
参数:
context - The context to configure
抛出:
Exception

postConfigure

public void postConfigure(WebAppContext context)
                   throws Exception
从接口 Configuration 复制的描述
Clear down after configuration.

指定者:
接口 Configuration 中的 postConfigure
覆盖:
AbstractConfiguration 中的 postConfigure
参数:
context - The context to configure
抛出:
Exception

cloneConfigure

public void cloneConfigure(WebAppContext template,
                           WebAppContext context)
                    throws Exception
从接口 Configuration 复制的描述
Clone configuration instance.

Configure an instance of a WebAppContext, based on a template WebAppContext that has previously been configured by this Configuration.

指定者:
接口 Configuration 中的 cloneConfigure
覆盖:
AbstractConfiguration 中的 cloneConfigure
参数:
template - The template context
context - The context to configure
抛出:
Exception

deconfigure

public void deconfigure(WebAppContext context)
                 throws Exception
从接口 Configuration 复制的描述
DeConfigure WebApp. This method is called to undo all configuration done. This is called to allow the context to work correctly over a stop/start cycle

指定者:
接口 Configuration 中的 deconfigure
覆盖:
AbstractConfiguration 中的 deconfigure
参数:
context - The context to configure
抛出:
Exception


Copyright © 2013. All Rights Reserved.