public class ConfigDecoratorMapper extends AbstractDecoratorMapper
config property (default '/WEB-INF/decorators.xml').DecoratorMapper,
DefaultDecorator,
ConfigLoader| Modifier and Type | Field and Description |
|---|---|
private ConfigLoader |
configLoader |
config, parent| Constructor and Description |
|---|
ConfigDecoratorMapper() |
| Modifier and Type | Method and Description |
|---|---|
Decorator |
getDecorator(javax.servlet.http.HttpServletRequest request,
Page page)
Retrieve
Decorator based on 'pattern' tag. |
Decorator |
getNamedDecorator(javax.servlet.http.HttpServletRequest request,
String name)
Retrieve Decorator named in 'name' attribute.
|
void |
init(Config config,
Properties properties,
DecoratorMapper parent)
Create new ConfigLoader using '/WEB-INF/decorators.xml' file.
|
private ConfigLoader configLoader
public void init(Config config, Properties properties, DecoratorMapper parent) throws InstantiationException
init in interface DecoratorMapperinit in class AbstractDecoratorMapperconfig - 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(javax.servlet.http.HttpServletRequest request, Page page)
Decorator based on 'pattern' tag.getDecorator in interface DecoratorMappergetDecorator in class AbstractDecoratorMapperpublic Decorator getNamedDecorator(javax.servlet.http.HttpServletRequest request, String name)
getNamedDecorator in interface DecoratorMappergetNamedDecorator in class AbstractDecoratorMapper