Class NullDecoratorMapper
java.lang.Object
com.opensymphony.module.sitemesh.mapper.NullDecoratorMapper
- All Implemented Interfaces:
DecoratorMapper
The NullDecoratorMapper represents the top-level DecoratorMapper that is finally delegated to if no other
DecoratorMapper has intervened. It is used so the parent property does not have to be checked by other
DecoratorMappers (null object pattern).
- Author:
- Joe Walnes
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDecorator(javax.servlet.http.HttpServletRequest request, Page page) Returns null.getNamedDecorator(javax.servlet.http.HttpServletRequest request, String name) Returns null.voidinit(Config config, Properties properties, DecoratorMapper parent) Does nothing.
-
Constructor Details
-
NullDecoratorMapper
public NullDecoratorMapper()
-
-
Method Details
-
init
Does nothing.- Specified by:
initin interfaceDecoratorMapper- Parameters:
config- Config supplied by Servlet or Filter.properties- Any initialization properties (specific to implementation).parent- the parent
-
getDecorator
Returns null.- Specified by:
getDecoratorin interfaceDecoratorMapper- Parameters:
request- the requestpage- the page- Returns:
- the decorator
-
getNamedDecorator
Returns null.- Specified by:
getNamedDecoratorin interfaceDecoratorMapper- Parameters:
request- the requestname- the name- Returns:
- the named decorator
-