Class NullDecoratorMapper
- java.lang.Object
-
- com.opensymphony.module.sitemesh.mapper.NullDecoratorMapper
-
- All Implemented Interfaces:
DecoratorMapper
public class NullDecoratorMapper extends java.lang.Object implements DecoratorMapper
The NullDecoratorMapper represents the top-level DecoratorMapper that is finally delegated to if no other DecoratorMapper has intervened. It is used so the parent property does not have to be checked by other DecoratorMappers (null object pattern).- Version:
- $Revision: 1.1 $
- Author:
- Joe Walnes
- See Also:
DecoratorMapper
-
-
Constructor Summary
Constructors Constructor Description NullDecoratorMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Decorator
getDecorator(javax.servlet.http.HttpServletRequest request, Page page)
Returns null.Decorator
getNamedDecorator(javax.servlet.http.HttpServletRequest request, java.lang.String name)
Returns null.void
init(Config config, java.util.Properties properties, DecoratorMapper parent)
Does nothing.
-
-
-
Method Detail
-
init
public void init(Config config, java.util.Properties properties, DecoratorMapper parent)
Does nothing.- Specified by:
init
in interfaceDecoratorMapper
- Parameters:
config
- Config supplied by Servlet or Filter.properties
- Any initialization properties (specific to implementation).
-
getDecorator
public Decorator getDecorator(javax.servlet.http.HttpServletRequest request, Page page)
Returns null.- Specified by:
getDecorator
in interfaceDecoratorMapper
-
getNamedDecorator
public Decorator getNamedDecorator(javax.servlet.http.HttpServletRequest request, java.lang.String name)
Returns null.- Specified by:
getNamedDecorator
in interfaceDecoratorMapper
-
-