DecoratorMapper
EnvEntryDecoratorMapper
public class ConfigDecoratorMapper extends AbstractDecoratorMapper
config
property (default '/WEB-INF/decorators.xml').DecoratorMapper
,
DefaultDecorator
,
ConfigLoader
Modifier and Type | Field | Description |
---|---|---|
private ConfigLoader |
configLoader |
config, parent
Constructor | Description |
---|---|
ConfigDecoratorMapper() |
Modifier and Type | Method | 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 DecoratorMapper
init
in class AbstractDecoratorMapper
config
- 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 DecoratorMapper
getDecorator
in class AbstractDecoratorMapper
public Decorator getNamedDecorator(javax.servlet.http.HttpServletRequest request, String name)
getNamedDecorator
in interface DecoratorMapper
getNamedDecorator
in class AbstractDecoratorMapper