org.apache.catalina.startup

Class TldConfig

public final class TldConfig extends Object implements 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

Method Summary
voidaddApplicationListener(String s)
voidexecute()
Scan for and configure all tag library descriptors found in this web application.
ContextgetContext()
String[]getTldListeners()
booleangetTldNamespaceAware()
Get the server.xml <host> attribute's xmlNamespaceAware.
booleangetTldValidation()
Get the server.xml <host> attribute's xmlValidation.
booleanisRescan()
voidlifecycleEvent(LifecycleEvent event)
voidsetContext(Context context)
static voidsetNoTldJars(String jarNames)
Sets the list of JARs that are known not to contain any TLDs.
voidsetRescan(boolean rescan)
voidsetTldNamespaceAware(boolean tldNamespaceAware)
Set the namespace aware feature of the XML parser used when parsing xml instances.
voidsetTldValidation(boolean tldValidation)
Set the validation feature of the XML parser used when parsing xml instances.

Method Detail

addApplicationListener

public void addApplicationListener(String s)

execute

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

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

getContext

public Context getContext()

getTldListeners

public String[] getTldListeners()

getTldNamespaceAware

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

Returns: true if namespace awarenes is enabled.

getTldValidation

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

Returns: true if validation is enabled.

isRescan

public boolean isRescan()

lifecycleEvent

public void lifecycleEvent(LifecycleEvent event)

setContext

public void setContext(Context context)

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

setRescan

public void setRescan(boolean rescan)

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

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

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.