public class CreateComponentDirective
extends org.springframework.extensions.surf.extensibility.impl.AbstractFreeMarkerDirective
This directive is used for creating Component instances just before they are required by a region directive.
This allows developers to quickly reference WebScripts without the overhead of creating additional configuration files.
| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECTIVE_NAME
The name to reference this directive by in FreeMarker templates.
|
| Constructor and Description |
|---|
CreateComponentDirective(String directiveName) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(freemarker.core.Environment env,
Map params,
freemarker.template.TemplateModel[] loopVars,
freemarker.template.TemplateDirectiveBody body) |
void |
setModelObjectService(ModelObjectService modelObjectService)
Setter provided so that the Spring application context can set the
ModelObjectService. |
public static final String DIRECTIVE_NAME
public CreateComponentDirective(String directiveName)
public void setModelObjectService(ModelObjectService modelObjectService)
ModelObjectService.modelObjectService - ModelObjectServicepublic void execute(freemarker.core.Environment env,
Map params,
freemarker.template.TemplateModel[] loopVars,
freemarker.template.TemplateDirectiveBody body)
throws freemarker.template.TemplateException,
IOException
freemarker.template.TemplateExceptionIOExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.