Package net.officefloor.woof.template
Interface WoofTemplateExtensionLoader
-
- All Known Implementing Classes:
WoofTemplateExtensionLoaderImpl
public interface WoofTemplateExtensionLoader
Loads the extension from theWoofTemplateExtensionSource
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
extendTemplate(WoofTemplateExtensionSource extensionSource, PropertyList properties, java.lang.String applicationPath, WebTemplate template, OfficeArchitect officeArchitect, WebArchitect webArchitect, SourceContext sourceContext)
Extends theWebTemplate
with theWoofTemplateExtensionSource
.PropertyList
loadSpecification(java.lang.String woofTemplateExtensionSourceClassName, java.lang.ClassLoader classLoader, CompilerIssues issues)
Loads and returns thePropertyList
from theWoofTemplateExtensionSourceSpecification
for theWoofTemplateExtensionSource
.Change<?>
refactorTemplateExtension(java.lang.String woofTemplateExtensionSourceClassName, java.lang.String oldUri, SourceProperties oldProperties, java.lang.String newUri, SourceProperties newProperties, ConfigurationContext configurationContext, SourceContext sourceContext, WoofChangeIssues issues)
Refactors theWoofTemplateExtensionSource
for theWoofTemplateModel
.
-
-
-
Method Detail
-
loadSpecification
PropertyList loadSpecification(java.lang.String woofTemplateExtensionSourceClassName, java.lang.ClassLoader classLoader, CompilerIssues issues)
Loads and returns thePropertyList
from theWoofTemplateExtensionSourceSpecification
for theWoofTemplateExtensionSource
.- Parameters:
woofTemplateExtensionSourceClassName
-WoofTemplateExtensionSource
class name.classLoader
-ClassLoader
to use in loading the specification.issues
-CompilerIssues
to report any issues in attempting to obtain thePropertyList
.- Returns:
PropertyList
of theWoofTemplateExtensionSourceProperty
instances of theWoofTemplateExtensionSourceSpecification
ornull
if issue, which is reported to theCompilerIssues
.
-
refactorTemplateExtension
Change<?> refactorTemplateExtension(java.lang.String woofTemplateExtensionSourceClassName, java.lang.String oldUri, SourceProperties oldProperties, java.lang.String newUri, SourceProperties newProperties, ConfigurationContext configurationContext, SourceContext sourceContext, WoofChangeIssues issues)
Refactors theWoofTemplateExtensionSource
for theWoofTemplateModel
.- Parameters:
woofTemplateExtensionSourceClassName
-WoofTemplateExtensionSource
class name.oldUri
- Old URI. May benull
if addingWoofTemplateExtensionSource
.oldProperties
- OldSourceProperties
.newUri
- New URI. May benull
if removing theWoofTemplateExtensionSource
.newProperties
- NewSourceProperties
.configurationContext
-ConfigurationContext
.sourceContext
-SourceContext
.issues
-WoofChangeIssues
.- Returns:
Change
to refactor theWoofTemplateExtensionSource
for theWoofTemplateModel
.
-
extendTemplate
void extendTemplate(WoofTemplateExtensionSource extensionSource, PropertyList properties, java.lang.String applicationPath, WebTemplate template, OfficeArchitect officeArchitect, WebArchitect webArchitect, SourceContext sourceContext) throws WoofTemplateExtensionException
Extends theWebTemplate
with theWoofTemplateExtensionSource
.- Parameters:
extensionSource
-WoofTemplateExtensionSource
.properties
-PropertyList
to configure theWoofTemplateExtensionSource
.applicationPath
- Application path to theWebTemplate
.template
-WebTemplate
to be extended.officeArchitect
-OfficeArchitect
.webArchitect
-WebArchitect
.sourceContext
-SourceContext
.- Throws:
WoofTemplateExtensionException
- If fails to extend theWebTemplate
.
-
-