Save This Page
Home » sitemesh-2.3 » com.opensymphony.module » sitemesh » mapper » [javadoc | source]
com.opensymphony.module.sitemesh.mapper
public class: ConfigDecoratorMapper [javadoc | source]
java.lang.Object
   com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
      com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper

All Implemented Interfaces:
    DecoratorMapper

Direct Known Subclasses:
    EnvEntryDecoratorMapper

Default implementation of DecoratorMapper. Reads decorators and mappings from the config property (default '/WEB-INF/decorators.xml').
Fields inherited from com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper:
parent,  config
Method from com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper Summary:
getDecorator,   getNamedDecorator,   init
Methods from com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper:
getDecorator,   getNamedDecorator,   init
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper Detail:
 public Decorator getDecorator(HttpServletRequest request,
    Page page) 
 public Decorator getNamedDecorator(HttpServletRequest request,
    String name) 
    Retrieve Decorator named in 'name' attribute. Checks the role if specified.
 public  void init(Config config,
    Properties properties,
    DecoratorMapper parent) throws InstantiationException 
    Create new ConfigLoader using '/WEB-INF/decorators.xml' file.