|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
public abstract class 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(javax.servlet.http.HttpServletRequest request,
Page page)
Delegate to parent. |
Decorator |
getNamedDecorator(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Delegate to parent. |
void |
init(Config config,
java.util.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,
java.util.Properties properties,
DecoratorMapper parent)
throws java.lang.InstantiationException
init in interface DecoratorMapperconfig - Config supplied by Servlet or Filter.properties - Any initialization properties (specific to implementation).
java.lang.InstantiationException - should be thrown if the implementation
cannot be initialized properly.
public Decorator getDecorator(javax.servlet.http.HttpServletRequest request,
Page page)
getDecorator in interface DecoratorMapper
public Decorator getNamedDecorator(javax.servlet.http.HttpServletRequest request,
java.lang.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 | |||||||||