Package net.officefloor.woof.template
Interface WoofTemplateExtensionLoader
- All Known Implementing Classes:
WoofTemplateExtensionLoaderImpl
public interface WoofTemplateExtensionLoader
Loads the extension from the
WoofTemplateExtensionSource.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidextendTemplate(WoofTemplateExtensionSource extensionSource, PropertyList properties, String applicationPath, WebTemplate template, OfficeArchitect officeArchitect, WebArchitect webArchitect, SourceContext sourceContext) Extends theWebTemplatewith theWoofTemplateExtensionSource.loadSpecification(String woofTemplateExtensionSourceClassName, ClassLoader classLoader, CompilerIssues issues) Loads and returns thePropertyListfrom theWoofTemplateExtensionSourceSpecificationfor theWoofTemplateExtensionSource.Change<?>refactorTemplateExtension(String woofTemplateExtensionSourceClassName, String oldUri, SourceProperties oldProperties, String newUri, SourceProperties newProperties, ConfigurationContext configurationContext, SourceContext sourceContext, net.officefloor.woof.model.woof.WoofChangeIssues issues) Refactors theWoofTemplateExtensionSourcefor theWoofTemplateModel.
-
Method Details
-
loadSpecification
PropertyList loadSpecification(String woofTemplateExtensionSourceClassName, ClassLoader classLoader, CompilerIssues issues) Loads and returns thePropertyListfrom theWoofTemplateExtensionSourceSpecificationfor theWoofTemplateExtensionSource.- Parameters:
woofTemplateExtensionSourceClassName-WoofTemplateExtensionSourceclass name.classLoader-ClassLoaderto use in loading the specification.issues-CompilerIssuesto report any issues in attempting to obtain thePropertyList.- Returns:
PropertyListof theWoofTemplateExtensionSourcePropertyinstances of theWoofTemplateExtensionSourceSpecificationornullif issue, which is reported to theCompilerIssues.
-
refactorTemplateExtension
Change<?> refactorTemplateExtension(String woofTemplateExtensionSourceClassName, String oldUri, SourceProperties oldProperties, String newUri, SourceProperties newProperties, ConfigurationContext configurationContext, SourceContext sourceContext, net.officefloor.woof.model.woof.WoofChangeIssues issues) Refactors theWoofTemplateExtensionSourcefor theWoofTemplateModel.- Parameters:
woofTemplateExtensionSourceClassName-WoofTemplateExtensionSourceclass name.oldUri- Old URI. May benullif addingWoofTemplateExtensionSource.oldProperties- OldSourceProperties.newUri- New URI. May benullif removing theWoofTemplateExtensionSource.newProperties- NewSourceProperties.configurationContext-ConfigurationContext.sourceContext-SourceContext.issues-WoofChangeIssues.- Returns:
Changeto refactor theWoofTemplateExtensionSourcefor theWoofTemplateModel.
-
extendTemplate
void extendTemplate(WoofTemplateExtensionSource extensionSource, PropertyList properties, String applicationPath, WebTemplate template, OfficeArchitect officeArchitect, WebArchitect webArchitect, SourceContext sourceContext) throws WoofTemplateExtensionException Extends theWebTemplatewith theWoofTemplateExtensionSource.- Parameters:
extensionSource-WoofTemplateExtensionSource.properties-PropertyListto configure theWoofTemplateExtensionSource.applicationPath- Application path to theWebTemplate.template-WebTemplateto be extended.officeArchitect-OfficeArchitect.webArchitect-WebArchitect.sourceContext-SourceContext.- Throws:
WoofTemplateExtensionException- If fails to extend theWebTemplate.
-