public class DefaultDirectiveFactory extends Object implements DirectiveFactory
The default Surf bean for instantiating FreeMarker directives.
| Constructor and Description |
|---|
DefaultDirectiveFactory() |
| Modifier and Type | Method and Description |
|---|---|
AddInlineJavaScriptDirective |
createAddInlineJavaScriptDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context)
Creates a new
AddInlineJavaScriptDirective directive. |
AutoComponentRegionDirective |
createAutoComponentRegionDirective(String directiveName,
RequestContext context,
RenderService renderService)
Creates a new
AutoComponentRegionDirective. |
ChecksumResourceDirective |
createChecksumResourceDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context)
Creates a new
ChecksumResourceDirective directive. |
ChromeDetectionDirective |
createChromeDetectionDirective(String directiveName,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
WebFrameworkConfigElement webFrameworkConfigElement,
RequestContext context)
Creates a new
ChromeDetectionDirective. |
CreateComponentDirective |
createCreateComponentDirective(String directiveName)
Creates a new
CreateComponentDirective. |
CreateWebScriptWidgetsDirective |
createCreateWebScriptsDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context)
Creates a new
CreateWebScriptWidgetsDirective directive. |
CssDependencyDirective |
createCssDependencyDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context)
Creates a new
CssDependencyDirective directive. |
JavaScriptDependencyDirective |
createJavaScriptDependencyDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context)
Creates a new
JavaScriptDependencyDirective directive. |
MessagesDependencyDirective |
createMessagesDependencyDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context)
Creates a new
MessagesDependencyDirective directive. |
OutputCSSDirective |
createOutputCssDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context)
Creates a new
OutputCSSDirective directive. |
OutputJavaScriptDirective |
createOutputJavaScriptDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context)
Creates a new
OutputJavaScriptDirective directive. |
ProcessJsonModelDirective |
createProcessJsonModelDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context,
WebFrameworkConfigElement webFrameworkConfig)
Creates a new
ProcessJsonModelDirective. |
RelocateJavaScriptOutputDirective |
createRelocateJavaScriptDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context)
Creates a new
RelocateJavaScriptOutputDirective directive. |
StandaloneWebScriptWrapper |
createStandaloneWebScriptWrapperDirective(String directiveName,
ModelObject object,
org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel,
RequestContext context)
Creates a new
ChromeDetectionDirective. |
MessagesWebScript |
getMessagesWebScript()
Returns the message WebScript.
|
void |
setConfigService(org.springframework.extensions.config.ConfigService configService) |
void |
setDependencyAggregator(DependencyAggregator dependencyAggregator) |
void |
setDependencyHandler(DependencyHandler dependencyHandler) |
void |
setDojoDependencyHandler(DojoDependencyHandler dojoDependencyHandler) |
void |
setI18nDependencyHandler(I18nDependencyHandler i18nDependencyHandler) |
void |
setMessagesWebScript(MessagesWebScript messagesWebScript)
Sets the
MessagesWebScript. |
void |
setModelObjectService(ModelObjectService modelObjectService) |
protected void |
setupDirective(AbstractDependencyExtensibilityDirective directive,
ModelObject object,
RequestContext context)
Sets up a directive with the core objects needed.
|
void |
setWebFrameworkConfig(WebFrameworkConfigElement webFrameworkConfig) |
void |
setWebScriptsContainer(LocalWebScriptRuntimeContainer webScriptsContainer) |
public void setWebScriptsContainer(LocalWebScriptRuntimeContainer webScriptsContainer)
public void setConfigService(org.springframework.extensions.config.ConfigService configService)
public void setDojoDependencyHandler(DojoDependencyHandler dojoDependencyHandler)
public void setWebFrameworkConfig(WebFrameworkConfigElement webFrameworkConfig)
public void setDependencyHandler(DependencyHandler dependencyHandler)
public void setDependencyAggregator(DependencyAggregator dependencyAggregator)
public void setModelObjectService(ModelObjectService modelObjectService)
public void setI18nDependencyHandler(I18nDependencyHandler i18nDependencyHandler)
public MessagesWebScript getMessagesWebScript()
Returns the message WebScript.
getMessagesWebScript in interface DirectiveFactorypublic void setMessagesWebScript(MessagesWebScript messagesWebScript)
Sets the MessagesWebScript.
messagesWebScript - MessagesWebScriptpublic MessagesDependencyDirective createMessagesDependencyDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context)
Creates a new MessagesDependencyDirective directive.
createMessagesDependencyDirective in interface DirectiveFactoryobject - The current ModelObject being processed.extensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextpublic JavaScriptDependencyDirective createJavaScriptDependencyDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context)
Creates a new JavaScriptDependencyDirective directive.
createJavaScriptDependencyDirective in interface DirectiveFactoryobject - The current ModelObject being processed.extensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextdirectiveName - The name of the directivepublic CssDependencyDirective createCssDependencyDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context)
Creates a new CssDependencyDirective directive.
createCssDependencyDirective in interface DirectiveFactoryobject - The current ModelObject being processed.extensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextdirectiveName - The name of the directivepublic ChecksumResourceDirective createChecksumResourceDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context)
Creates a new ChecksumResourceDirective directive.
createChecksumResourceDirective in interface DirectiveFactoryobject - The current ModelObject being processed.extensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextdirectiveName - The name of the directivepublic AddInlineJavaScriptDirective createAddInlineJavaScriptDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context)
Creates a new AddInlineJavaScriptDirective directive.
createAddInlineJavaScriptDirective in interface DirectiveFactoryobject - The current ModelObject being processed.extensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextdirectiveName - The name of the directivepublic CreateWebScriptWidgetsDirective createCreateWebScriptsDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context)
Creates a new CreateWebScriptWidgetsDirective directive.
createCreateWebScriptsDirective in interface DirectiveFactoryobject - The current ModelObject being processed.extensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextdirectiveName - The name of the directivepublic OutputCSSDirective createOutputCssDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context)
Creates a new OutputCSSDirective directive.
createOutputCssDirective in interface DirectiveFactoryobject - The current ModelObject being processed.extensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextdirectiveName - The name of the directivepublic OutputJavaScriptDirective createOutputJavaScriptDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context)
Creates a new OutputJavaScriptDirective directive.
createOutputJavaScriptDirective in interface DirectiveFactoryobject - The current ModelObject being processed.extensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextdirectiveName - The name of the directivepublic RelocateJavaScriptOutputDirective createRelocateJavaScriptDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context)
Creates a new RelocateJavaScriptOutputDirective directive.
createRelocateJavaScriptDirective in interface DirectiveFactoryobject - The current ModelObject being processed.extensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextdirectiveName - The name of the directivepublic ChromeDetectionDirective createChromeDetectionDirective(String directiveName, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, WebFrameworkConfigElement webFrameworkConfigElement, RequestContext context)
Creates a new ChromeDetectionDirective.
createChromeDetectionDirective in interface DirectiveFactorydirectiveName - The name of the directiveextensibilityModel - The current ExtensibilityModel being worked on.webFrameworkConfigElement - The WebFrameworkConfigElement for the application.context - The current RequestContextpublic StandaloneWebScriptWrapper createStandaloneWebScriptWrapperDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context)
Creates a new ChromeDetectionDirective.
createStandaloneWebScriptWrapperDirective in interface DirectiveFactorydirectiveName - The name of the directiveobject - ModelObjectextensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextprotected void setupDirective(AbstractDependencyExtensibilityDirective directive, ModelObject object, RequestContext context)
Sets up a directive with the core objects needed.
directive - AbstractDependencyExtensibilityDirectiveobject - ModelObjectcontext - RequestContextpublic CreateComponentDirective createCreateComponentDirective(String directiveName)
DirectiveFactoryCreates a new CreateComponentDirective.
createCreateComponentDirective in interface DirectiveFactorydirectiveName - The name of the directivepublic ProcessJsonModelDirective createProcessJsonModelDirective(String directiveName, ModelObject object, org.springframework.extensions.surf.extensibility.ExtensibilityModel extensibilityModel, RequestContext context, WebFrameworkConfigElement webFrameworkConfig)
DirectiveFactoryCreates a new ProcessJsonModelDirective.
createProcessJsonModelDirective in interface DirectiveFactorydirectiveName - The name of the directiveobject - ModelObjectextensibilityModel - The current ExtensibilityModel being worked on.context - The current RequestContextwebFrameworkConfig - TODOpublic AutoComponentRegionDirective createAutoComponentRegionDirective(String directiveName, RequestContext context, RenderService renderService)
DirectiveFactoryCreates a new AutoComponentRegionDirective.
createAutoComponentRegionDirective in interface DirectiveFactorydirectiveName - The name of the directivecontext - The current RequestContextrenderService - RenderServiceCopyright © 2005–2016 Alfresco Software. All rights reserved.