org.codehaus.waffle.testing.view.sitemesh
Class SitemeshDecorator
java.lang.Object
org.codehaus.waffle.testing.view.sitemesh.SitemeshDecorator
public class SitemeshDecorator
- extends java.lang.Object
Sitemesh template decorator
- Author:
- Mauro Talevi
Method Summary |
java.lang.String |
decorate(java.lang.String resource,
java.lang.Object controller,
java.lang.String decoratorsResource,
java.lang.String decoratorName,
java.util.Map<java.lang.String,java.lang.Object> decoratorDataModel)
Decorates a view with Sitemesh |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SitemeshDecorator
public SitemeshDecorator(ViewProcessor processor,
java.lang.ClassLoader classLoader)
decorate
public java.lang.String decorate(java.lang.String resource,
java.lang.Object controller,
java.lang.String decoratorsResource,
java.lang.String decoratorName,
java.util.Map<java.lang.String,java.lang.Object> decoratorDataModel)
- Decorates a view with Sitemesh
- Parameters:
resource
- the template resource pathcontroller
- the controller instancedecoratorsResource
- the Sitemesh decorators resourcedecoratorName
- the decorator namedecoratorDataModel
- the decorator data model that can be used to override the processor data model
- Returns:
- The decorated resource
Copyright © 2008. All Rights Reserved.