Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.tomcat
Class TldConfig

java.lang.Object
  extended by org.nuxeo.runtime.tomcat.TldConfig
All Implemented Interfaces:
org.apache.catalina.LifecycleListener

public final class TldConfig
extends Object
implements org.apache.catalina.LifecycleListener

Startup event listener for a Context that configures application listeners configured in any TLD files.

Author:
Craig R. McClanahan, Jean-Francois Arcand, Costin Manolache BS: patched to avoid lookups in parent class loaders - see BS comments

Constructor Summary
TldConfig()
           
 
Method Summary
 void addApplicationListener(String s)
           
 void execute()
          Scan for and configure all tag library descriptors found in this web application.
 org.apache.catalina.Context getContext()
           
 String[] getTldListeners()
           
 boolean getTldNamespaceAware()
          Get the server.xml attribute's xmlNamespaceAware.
 boolean getTldValidation()
          Get the server.xml attribute's xmlValidation.
 boolean isRescan()
           
 void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
           
 void setContext(org.apache.catalina.Context context)
           
static void setNoTldJars(String jarNames)
          Sets the list of JARs that are known not to contain any TLDs.
 void setRescan(boolean rescan)
           
 void setTldNamespaceAware(boolean tldNamespaceAware)
          Set the namespace aware feature of the XML parser used when parsing xml instances.
 void setTldValidation(boolean tldValidation)
          Set the validation feature of the XML parser used when parsing xml instances.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TldConfig

public TldConfig()
Method Detail

setNoTldJars

public static void setNoTldJars(String jarNames)
Sets the list of JARs that are known not to contain any TLDs.

Parameters:
jarNames - List of comma-separated names of JAR files that are known not to contain any TLDs

setTldValidation

public void setTldValidation(boolean tldValidation)
Set the validation feature of the XML parser used when parsing xml instances.

Parameters:
tldValidation - true to enable xml instance validation

getTldValidation

public boolean getTldValidation()
Get the server.xml attribute's xmlValidation.

Returns:
true if validation is enabled.

getTldNamespaceAware

public boolean getTldNamespaceAware()
Get the server.xml attribute's xmlNamespaceAware.

Returns:
true if namespace awarenes is enabled.

setTldNamespaceAware

public void setTldNamespaceAware(boolean tldNamespaceAware)
Set the namespace aware feature of the XML parser used when parsing xml instances.

Parameters:
tldNamespaceAware - true to enable namespace awareness

isRescan

public boolean isRescan()

setRescan

public void setRescan(boolean rescan)

getContext

public org.apache.catalina.Context getContext()

setContext

public void setContext(org.apache.catalina.Context context)

addApplicationListener

public void addApplicationListener(String s)

getTldListeners

public String[] getTldListeners()

execute

public void execute()
             throws Exception
Scan for and configure all tag library descriptors found in this web application.

Throws:
Exception - if a fatal input/output or parsing error occurs

lifecycleEvent

public void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
Specified by:
lifecycleEvent in interface org.apache.catalina.LifecycleListener

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.