Home » sitemesh-2.4.1 » com.opensymphony.module » sitemesh » mapper » [javadoc | source]
com.opensymphony.module.sitemesh.mapper
abstract public class: AbstractDecoratorMapper [javadoc | source]
java.lang.Object
   com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper

All Implemented Interfaces:
    DecoratorMapper

Direct Known Subclasses:
    OSDecoratorMapper, SessionDecoratorMapper, AgentDecoratorMapper, ConfigDecoratorMapper, ParameterDecoratorMapper, CookieDecoratorMapper, FileDecoratorMapper, PageDecoratorMapper, FrameSetDecoratorMapper, InlineDecoratorMapper, RobotDecoratorMapper, EnvEntryDecoratorMapper, PrintableDecoratorMapper, LanguageDecoratorMapper

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.

Field Summary
protected  DecoratorMapper parent    Parent DecoratorMapper. 
protected  Config config     
Method from com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper Summary:
getDecorator,   getNamedDecorator,   init
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper Detail:
 public Decorator getDecorator(HttpServletRequest request,
    Page page) 
    Delegate to parent.
 public Decorator getNamedDecorator(HttpServletRequest request,
    String name) 
    Delegate to parent.
 public  void init(Config config,
    Properties properties,
    DecoratorMapper parent) throws InstantiationException 
    Set parent.