Class DefaultFactory

All Implemented Interfaces:
PageParserSelector

public class DefaultFactory extends BaseFactory
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 Details

    • configCheckMillis

      public static long configCheckMillis
  • Constructor Details

    • DefaultFactory

      public DefaultFactory(Config config)
  • Method Details

    • refresh

      public void refresh()
      Check if configuration file has been modified, and if so reload it.
      Specified by:
      refresh in class Factory