public abstract class AbstractWoofTemplateExtensionSource extends Object implements WoofTemplateExtensionSource
WoofTemplateExtensionSource
.Modifier and Type | Class and Description |
---|---|
static interface |
AbstractWoofTemplateExtensionSource.SpecificationContext
Context for the
WoofTemplateExtensionSource.getSpecification() . |
Constructor and Description |
---|
AbstractWoofTemplateExtensionSource() |
Modifier and Type | Method and Description |
---|---|
Change<?> |
createConfigurationChange(WoofTemplateExtensionChangeContext context)
This is only invoked by the WoOF editor to enable managing configuration
for the
WoofTemplateExtensionSource . |
WoofTemplateExtensionSourceSpecification |
getSpecification()
Obtains the specification for this.
|
protected abstract void |
loadSpecification(AbstractWoofTemplateExtensionSource.SpecificationContext context)
Overridden to load specifications.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
extendTemplate
public WoofTemplateExtensionSourceSpecification getSpecification()
WoofTemplateExtensionSource
Obtains 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.
getSpecification
in interface WoofTemplateExtensionSource
protected abstract void loadSpecification(AbstractWoofTemplateExtensionSource.SpecificationContext context)
context
- Specifications.public Change<?> createConfigurationChange(WoofTemplateExtensionChangeContext context)
WoofTemplateExtensionSource
This is only invoked by the WoOF editor to enable managing configuration
for the WoofTemplateExtensionSource
. It is not used during
extension of the HttpTemplateAutoWireSection
.
This method is to create a potential Change
to the configuration
necessary for the WoofTemplateExtensionSource
. Should no
Change
be required it should return null
.
WoofTemplateExtensionSource
implementations may require
configuration by extra files within the application. This method allows
the WoofTemplateExtensionSource
to create/update/delete the files
within the ConfigurationContext
(i.e. Java raw source project).
Note that all actions must be undertaken by the returned Change
as this method may be invoked to validate configuration. This is to avoid
side effects by the WoOF editor.
Should configuration of the WoofTemplateExtensionSource
be
invalid, this method should return a Change
with a
Conflict
instance explaining the reason the configuration is
invalid.
createConfigurationChange
in interface WoofTemplateExtensionSource
context
- WoofTemplateExtensionChangeContext
.Change
or null
if no change is necessary.Copyright © 2005–2016. All rights reserved.