Save This Page
Home » sitemesh-2.3 » 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:
    LanguageDecoratorMapper, InlineDecoratorMapper, AgentDecoratorMapper, EnvEntryDecoratorMapper, SessionDecoratorMapper, ParameterDecoratorMapper, ConfigDecoratorMapper, FileDecoratorMapper, OSDecoratorMapper, FrameSetDecoratorMapper, CookieDecoratorMapper, PageDecoratorMapper, PrintableDecoratorMapper, RobotDecoratorMapper

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:
equals,   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.