Package com.opensymphony.module.sitemesh
Class Factory
java.lang.Object
com.opensymphony.module.sitemesh.Factory
- All Implemented Interfaces:
PageParserSelector
- Direct Known Subclasses:
BaseFactory
Factory responsible for creating appropriate instances of implementations. This is specific to a web context and is
obtained through
getInstance(com.opensymphony.module.sitemesh.Config).
The actual Factory method used is determined by the enviroment entry sitemesh.factory. If this doesn't
exist, it defaults to DefaultFactory .
- Author:
- Joe Walnes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DecoratorMapperReturn instance of DecoratorMapper.static FactorygetInstance(Config config) Entry-point for obtaining singleton instance of Factory.abstract booleanisPathExcluded(String path) Determine whether the given path should be excluded from decoration or not.abstract voidrefresh()Refresh.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.opensymphony.module.sitemesh.PageParserSelector
getPageParser, shouldParsePage
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
getInstance
Entry-point for obtaining singleton instance of Factory. The default factory class that will be instantiated can be overridden with the environment entrysitemesh.factory.- Parameters:
config- the config- Returns:
- single instance of Factory
-
refresh
public abstract void refresh()Refresh. -
getDecoratorMapper
Return instance of DecoratorMapper.- Returns:
- the decorator mapper
-
isPathExcluded
Determine whether the given path should be excluded from decoration or not.- Parameters:
path- the path- Returns:
- true, if is path excluded
-