Class AbstractWoofTemplateExtensionSource
- All Implemented Interfaces:
WoofTemplateExtensionSource
WoofTemplateExtensionSource.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContext for theWoofTemplateExtensionSource.getSpecification(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChange<?>This is only invoked by the WoOF editor to enable managing configuration for theWoofTemplateExtensionSource.Obtains the specification for this.protected abstract voidOverridden to load specifications.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.woof.template.WoofTemplateExtensionSource
extendTemplate
-
Constructor Details
-
AbstractWoofTemplateExtensionSource
public AbstractWoofTemplateExtensionSource()
-
-
Method Details
-
getSpecification
Description copied from interface:WoofTemplateExtensionSourceObtains the specification for this.
This will be called before any other methods, therefore this method must be able to return the specification immediately after a default constructor instantiation.
- Specified by:
getSpecificationin interfaceWoofTemplateExtensionSource- Returns:
- Specification of this.
-
loadSpecification
protected abstract void loadSpecification(AbstractWoofTemplateExtensionSource.SpecificationContext context) Overridden to load specifications.- Parameters:
context- Specifications.
-
createConfigurationChange
Description copied from interface:WoofTemplateExtensionSourceThis is only invoked by the WoOF editor to enable managing configuration for the
WoofTemplateExtensionSource. It is not used during extension of theWebTemplate.This method is to create a potential
Changeto the configuration necessary for theWoofTemplateExtensionSource. Should noChangebe required it should returnnull.WoofTemplateExtensionSourceimplementations may require configuration by extra files within the application. This method allows theWoofTemplateExtensionSourceto create/update/delete the files within theConfigurationContext(i.e. Java raw source project).Note that all actions must be undertaken by the returned
Changeas this method may be invoked to validate configuration. This is to avoid side effects by the WoOF editor.Should configuration of the
WoofTemplateExtensionSourcebe invalid, this method should return aChangewith aConflictinstance explaining the reason the configuration is invalid.- Specified by:
createConfigurationChangein interfaceWoofTemplateExtensionSource- Parameters:
context-WoofTemplateExtensionChangeContext.- Returns:
Changeornullif no change is necessary.
-