Package org.jboss.windup.config.metadata
Interface RuleProviderMetadata
-
- All Superinterfaces:
RulesetMetadata
- All Known Implementing Classes:
MetadataBuilder
public interface RuleProviderMetadata extends RulesetMetadata
DescribesRuleProviderinstances.- Author:
- Lincoln Baxter, III
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Class<? extends RuleProvider>>getExecuteAfter()Returns a list ofRuleProviderclasses that should execute before theRuleinstances in this correspondingRuleProvider.List<String>getExecuteAfterIDs()Returns a list of theRuleProviderclasses that should execute before theRules in thisRuleProvider.List<Class<? extends RuleProvider>>getExecuteBefore()List<String>getExecuteBeforeIDs()Returns a list of theRuleProviderclasses that should execute after theRules in thisRuleProvider.Class<? extends RulePhase>getPhase()RulesetMetadatagetRulesetMetadata()Returns theRulesetMetadata, if any, for the rule-set from which thisRuleProviderMetadataoriginated.Class<? extends RuleProvider>getType()Returns theClassof the correspondingRuleProvider.booleanisDisabled()If true, Windup will skip running this RuleProvider.booleanisHaltOnException()Whether Windup should stop execution if this provider's rule execution ends with an exception.booleanisOverrideProvider()Indicates whether or not the rules in this provider should override other rules.-
Methods inherited from interface org.jboss.windup.config.metadata.RulesetMetadata
getDescription, getID, getOrigin, getRequiredAddons, getSourceTechnologies, getTags, getTargetTechnologies, hasTags
-
-
-
-
Method Detail
-
getType
Class<? extends RuleProvider> getType()
Returns theClassof the correspondingRuleProvider.
-
getRulesetMetadata
RulesetMetadata getRulesetMetadata()
Returns theRulesetMetadata, if any, for the rule-set from which thisRuleProviderMetadataoriginated.
-
getPhase
Class<? extends RulePhase> getPhase()
Return theRulePhasein whichRuleinstances from thisRuleProvidershould be executed.The default phase is
MigrationRulesPhase.
-
getExecuteAfter
List<Class<? extends RuleProvider>> getExecuteAfter()
Returns a list ofRuleProviderclasses that should execute before theRuleinstances in this correspondingRuleProvider.RuleProviders can also be specified based on id (getExecuteAfterIDs()).
-
getExecuteAfterIDs
List<String> getExecuteAfterIDs()
Returns a list of theRuleProviderclasses that should execute before theRules in thisRuleProvider. This is returned as a list ofRuleIDs in order to support extensions that cannot depend on each other via class names. For example, in the case of the Groovy rules extension, a single class covers many rules with their own IDs. For specifying Java-based rules,getExecuteAfter()is preferred.
-
getExecuteBefore
List<Class<? extends RuleProvider>> getExecuteBefore()
Returns a list ofRuleProviderclasses that should execute after theRules in thisRuleProvider.RuleProviders can also be specified based on id (getExecuteBeforeIDs()).
-
getExecuteBeforeIDs
List<String> getExecuteBeforeIDs()
Returns a list of theRuleProviderclasses that should execute after theRules in thisRuleProvider. This is returned as a list ofRuleIDs in order to support extensions that cannot depend on each other viaClassnames. For example, in the case of the Groovy rules extension, a single class covers many rules with their own IDs. For specifying Java-based rules,getExecuteBefore()is preferred.
-
isHaltOnException
boolean isHaltOnException()
Whether Windup should stop execution if this provider's rule execution ends with an exception. By default, the exceptions are only logged and the failing rule appears in report. The rule itself is responsible for handling exceptions and storing them into the graph.
-
isOverrideProvider
boolean isOverrideProvider()
Indicates whether or not the rules in this provider should override other rules. If this ruleprovider has the same ID as another rule provider, then any rules in this provider will override rules from that base rule provider that have the same id.
-
isDisabled
boolean isDisabled()
If true, Windup will skip running this RuleProvider. Meant for development purposes.
-
-