public class DependencyDirectiveData
extends org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveData
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
aggregate
Indicates whether or not to aggregate the dependency.
|
protected RequestContext |
context
This is required for backwards compatibility to support WebScripts that are still using *.head.ftl files to add dependencies.
|
protected String |
dependency
The dependency requested by the directive.
|
protected String |
group
The group that the dependency should be added to (as requested by the directive)
|
protected org.springframework.extensions.surf.extensibility.DeferredContentSourceModelElement |
modelElement
This is the
DeferredContentSourceModelElement that will get created when the createContentModelElement
method is called. |
protected org.springframework.extensions.surf.extensibility.DeferredContentTargetModelElement |
targetElement
The
DeferredContentTargetModelElement to associate any created DeferredContentSourceModelElement with. |
| Constructor and Description |
|---|
DependencyDirectiveData(String id,
String action,
String target,
String directiveName,
freemarker.template.TemplateDirectiveBody body,
freemarker.core.Environment env,
String dependency,
String group,
boolean aggregate,
org.springframework.extensions.surf.extensibility.DeferredContentTargetModelElement targetElement) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.extensions.surf.extensibility.ContentModelElement |
createContentModelElement() |
void |
render(org.springframework.extensions.surf.extensibility.impl.ModelWriter writer) |
protected String dependency
The dependency requested by the directive.
protected String group
The group that the dependency should be added to (as requested by the directive)
protected org.springframework.extensions.surf.extensibility.DeferredContentSourceModelElement modelElement
This is the DeferredContentSourceModelElement that will get created when the createContentModelElement
method is called. A reference to it is required so that when the render method is called it can be passed to its
associated DeferredContentTargetModelElement instance.
protected RequestContext context
This is required for backwards compatibility to support WebScripts that are still using *.head.ftl files to add dependencies.
When a "head" file is processed the main model (and therefore any target DeferredContentTargetModelElement) will not yet
exist. In order to ensure that the dependency is not lost we need to add the dependency via this RequestContext.
protected boolean aggregate
protected org.springframework.extensions.surf.extensibility.DeferredContentTargetModelElement targetElement
The DeferredContentTargetModelElement to associate any created DeferredContentSourceModelElement with.
public DependencyDirectiveData(String id, String action, String target, String directiveName, freemarker.template.TemplateDirectiveBody body, freemarker.core.Environment env, String dependency, String group, boolean aggregate, org.springframework.extensions.surf.extensibility.DeferredContentTargetModelElement targetElement)
public org.springframework.extensions.surf.extensibility.ContentModelElement createContentModelElement()
createContentModelElement in interface org.springframework.extensions.surf.extensibility.ExtensibilityDirectiveDatacreateContentModelElement in class org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveDatapublic void render(org.springframework.extensions.surf.extensibility.impl.ModelWriter writer)
throws freemarker.template.TemplateException,
IOException
render in interface org.springframework.extensions.surf.extensibility.ExtensibilityDirectiveDatarender in class org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveDatafreemarker.template.TemplateExceptionIOExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.