public abstract class RenderServiceFreeMarkerDirective
extends org.springframework.extensions.surf.extensibility.impl.AbstractFreeMarkerDirective
| Constructor and Description |
|---|
RenderServiceFreeMarkerDirective(String directiveName,
RequestContext context,
ModelObject object,
RenderService renderService)
This constructor will need to invoked by subclasses and ensures that a directive name,
RequestContext
and RenderService are provided. |
| Modifier and Type | Method and Description |
|---|---|
ModelObject |
getObject() |
RenderService |
getRenderService()
Returns the
RenderService supplied when instantiating the class. |
RequestContext |
getRequestContext()
Returns the
RequestContext supplied when instantiating the class |
getBooleanProperty, getDirectiveName, getStringPropertypublic RenderServiceFreeMarkerDirective(String directiveName, RequestContext context, ModelObject object, RenderService renderService)
This constructor will need to invoked by subclasses and ensures that a directive name, RequestContext
and RenderService are provided. The RenderService will be used to generate the
output rendered when invoking the directive represented by the subclass. The RequestContext is typically
required as an argument for RenderService methods and the directive name is only needed for generating
useful exception messages to assist debugging problems but an effort should be made to set it correctly
directiveName - The name of the directive represented by the instance of this class.context - A RequestContext required as an argument to the RenderService methods.renderService - A RenderService used to generate the output of the directive.public RenderService getRenderService()
Returns the RenderService supplied when instantiating the class.
RenderServicepublic RequestContext getRequestContext()
Returns the RequestContext supplied when instantiating the class
RequestContextpublic ModelObject getObject()
Copyright © 2005–2016 Alfresco Software. All rights reserved.