|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
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.
DecoratorMapper| Field Summary | |
protected Config |
config
|
protected DecoratorMapper |
parent
Parent DecoratorMapper. |
| Constructor Summary | |
AbstractDecoratorMapper()
|
|
| Method Summary | |
Decorator |
getDecorator(HttpServletRequest request,
Page page)
Delegate to parent. |
Decorator |
getNamedDecorator(HttpServletRequest request,
String name)
Delegate to parent. |
void |
init(Config config,
Properties properties,
DecoratorMapper parent)
Set parent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DecoratorMapper parent
protected Config config
| Constructor Detail |
public AbstractDecoratorMapper()
| Method Detail |
public void init(Config config,
Properties properties,
DecoratorMapper parent)
throws InstantiationException
init in interface DecoratorMapperconfig - Config supplied by Servlet or Filter.properties - Any initialization properties (specific to implementation).
InstantiationException - should be thrown if the implementation
cannot be initialized properly.
public Decorator getDecorator(HttpServletRequest request,
Page page)
getDecorator in interface DecoratorMapper
public Decorator getNamedDecorator(HttpServletRequest request,
String name)
getNamedDecorator in interface DecoratorMapper
|
www.opensymphony.com/sitemesh/ | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||