public class ConfigLoader
extends java.lang.Object
These can then be accessed by the getDecoratorByName() methods and getMappedName() methods respectively.
The DTD for the configuration file in old (deprecated) format is located at http://www.opensymphony.com/dtds/sitemesh_1_0_decorators.dtd .
The DTD for the configuration file in new format is located at http://www.opensymphony.com/dtds/sitemesh_1_5_decorators.dtd .
Editing the config file will cause it to be auto-reloaded.
This class is used by ConfigDecoratorMapper, and uses PathMapper for pattern matching.
ConfigDecoratorMapper,
PathMapper| Constructor and Description |
|---|
ConfigLoader(java.io.File configFile)
Create new ConfigLoader using supplied File.
|
ConfigLoader(java.lang.String configFileName,
Config config)
Create new ConfigLoader using supplied filename and config.
|
| Modifier and Type | Method and Description |
|---|---|
Decorator |
getDecoratorByName(java.lang.String name)
Retrieve Decorator based on name specified in configuration file.
|
java.lang.String |
getMappedName(java.lang.String path)
Get name of Decorator mapped to given path.
|
public ConfigLoader(java.io.File configFile)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic ConfigLoader(java.lang.String configFileName,
Config config)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic Decorator getDecoratorByName(java.lang.String name) throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic java.lang.String getMappedName(java.lang.String path)
throws javax.servlet.ServletException
javax.servlet.ServletException