com.sitemesh
Interface DecoratorMapper

- public interface DecoratorMapper
The DecoratorMapper is resposible for determining which
Decorator should be used for a
Page .
Implementations of this are returned by Factory .
All implementations of this should be thread safe.
- Version:
- $Revision: 1.8 $
init
public void init(Config config,
java.util.Properties properties)
throws java.lang.InstantiationException
- Initialize the mapper. This is always called before the other method.
getDecorator
public Decorator getDecorator(javax.servlet.http.HttpServletRequest request,
Page page)
- Return appropriate Decorator for a certain Page.
The implementation can determine the result based on the actual request
or the data of the parsed page.