Class AbstractDecoratorMapper
java.lang.Object
com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
- All Implemented Interfaces:
DecoratorMapper
- Direct Known Subclasses:
AgentDecoratorMapper,ConfigDecoratorMapper,CookieDecoratorMapper,FileDecoratorMapper,FrameSetDecoratorMapper,InlineDecoratorMapper,LanguageDecoratorMapper,OSDecoratorMapper,PageDecoratorMapper,ParameterDecoratorMapper,PrintableDecoratorMapper,RobotDecoratorMapper,SessionDecoratorMapper
Abstract DecoratorMapper implementation for easy creation of new DecoratorMappers.
Typically, an implementation would override getNamedDecorator() or getDecorator(). If a Decorator cannot be returned from either of these, then they should delegate to their superclass.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Configprotected DecoratorMapperParent DecoratorMapper. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDecorator(jakarta.servlet.http.HttpServletRequest request, Page page) Delegate to parent.getNamedDecorator(jakarta.servlet.http.HttpServletRequest request, String name) Delegate to parent.voidinit(Config config, Properties properties, DecoratorMapper parent) Set parent.
-
Field Details
-
parent
Parent DecoratorMapper. -
config
-
-
Constructor Details
-
AbstractDecoratorMapper
public AbstractDecoratorMapper()
-
-
Method Details
-
init
public void init(Config config, Properties properties, DecoratorMapper parent) throws InstantiationException Set parent.- Specified by:
initin interfaceDecoratorMapper- Parameters:
config- Config supplied by Servlet or Filter.properties- Any initialization properties (specific to implementation).- Throws:
InstantiationException- should be thrown if the implementation cannot be initialized properly.
-
getDecorator
Delegate to parent.- Specified by:
getDecoratorin interfaceDecoratorMapper
-
getNamedDecorator
Delegate to parent.- Specified by:
getNamedDecoratorin interfaceDecoratorMapper
-