Class DefaultFactory
java.lang.Object
com.opensymphony.module.sitemesh.Factory
com.opensymphony.module.sitemesh.factory.BaseFactory
com.opensymphony.module.sitemesh.factory.DefaultFactory
- All Implemented Interfaces:
PageParserSelector
DefaultFactory, reads configuration from the
sitemesh.configfile init param,
or /WEB-INF/sitemesh.xml if not specified, or uses the
default configuration if sitemesh.xml does not exist.
To use the sitemesh.configfile parameter, add the following to your web.xml:
<context-param>
<param-name>sitemesh.configfile</param-name>
<param-value>/WEB-INF/etc/sitemesh.xml</param-value>
</context-param>
-
Field Summary
FieldsFields inherited from class com.opensymphony.module.sitemesh.factory.BaseFactory
config, decoratorMapper, excludeUrls, pageParsers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrefresh()Check if configuration file has been modified, and if so reload it.Methods inherited from class com.opensymphony.module.sitemesh.factory.BaseFactory
addExcludeUrl, clearDecoratorMappers, clearExcludeUrls, clearParserMappings, getDecoratorMapper, getDecoratorMapper, getPageParser, isPathExcluded, mapParser, pushDecoratorMapper, shouldParsePageMethods inherited from class com.opensymphony.module.sitemesh.Factory
getInstance