public interface WoofTemplateExtensionSource
HttpTemplateAutoWireSectionExtension
.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 . |
void |
extendTemplate(WoofTemplateExtensionSourceContext context)
Extends the
HttpTemplateAutoWireSection . |
WoofTemplateExtensionSourceSpecification |
getSpecification()
Obtains the specification for this.
|
WoofTemplateExtensionSourceSpecification getSpecification()
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.
Change<?> createConfigurationChange(WoofTemplateExtensionChangeContext context)
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.
context
- WoofTemplateExtensionChangeContext
.Change
or null
if no change is necessary.void extendTemplate(WoofTemplateExtensionSourceContext context) throws Exception
HttpTemplateAutoWireSection
.context
- WoofTemplateExtensionSourceContext
.Exception
- If fails to extend the HttpTemplateAutoWireSection
.Copyright © 2005–2016. All rights reserved.