Package org.jboss.windup.config.metadata
Annotation Type RuleMetadata
-
@Target(TYPE) @Retention(RUNTIME) public @interface RuleMetadata
A descriptor forRuleProvidermetadata. Can be overridden by altering theRuleProviderMetadatadirectly.- Author:
- Ondrej Zizka, Lincoln Baxter, III
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends RuleProvider>[]afterReturns a list ofRuleProviderafter which theRuleinstances supplied by thisRuleProvidershould be executed.String[]afterIDsReturns a list ofRuleProviderIDs after which theRuleinstances supplied by thisRuleProvidershould be executed.Class<? extends RuleProvider>[]beforeReturns a list ofRuleProviderbefore which theRuleinstances supplied by thisRuleProvidershould be executed.String[]beforeIDsReturns a list ofRuleProviderIDs before which theRuleinstances supplied by thisRuleProvidershould be executed.StringdescriptionReturns a human-readable text containing a description of the rules in thisRuleProvider.booleandisabledIf true, Windup will skip running this RuleProvider.booleanhaltOnExceptionWhether Windup should stop execution if this provider's rule execution ends with an exception.StringidReturns a unique identifier for this particularRuleProvider.booleanoverrideProviderIndicates whether or not the rules in this provider should override other rules.StringperformString used to display the progress of rule execution to the user.Class<? extends RulePhase>phaseTechnology[]sourceTechnologiesA list of source technologies that the annotated rules pertain to.String[]tagsThe tags describing thisRuleProvider.Technology[]targetTechnologiesA list of target technologies that the annotated rules pertain to.
-
-
-
Element Detail
-
id
String id
Returns a unique identifier for this particularRuleProvider. The default is based on theClassname, but this can be overridden here - or in subclasses - to provide a more readable name.- Default:
- ""
-
-
-
description
String description
Returns a human-readable text containing a description of the rules in thisRuleProvider.- Default:
- ""
-
-
-
perform
String perform
String used to display the progress of rule execution to the user.- Default:
- ""
-
-
-
phase
Class<? extends RulePhase> phase
Return theRulePhasein which theRuleinstances from thisRuleProvidershould be executed.The default phase is
MigrationRulesPhase.- Default:
- org.jboss.windup.config.phase.MigrationRulesPhase.class
-
-
-
after
Class<? extends RuleProvider>[] after
Returns a list ofRuleProviderafter which theRuleinstances supplied by thisRuleProvidershould be executed.- Default:
- {}
-
-
-
afterIDs
String[] afterIDs
Returns a list ofRuleProviderIDs after which theRuleinstances supplied by thisRuleProvidershould be executed.This is returned as a list of
RuleProviderIDs in order to support extensions that cannot depend on each other via class names.- Default:
- {}
-
-
-
before
Class<? extends RuleProvider>[] before
Returns a list ofRuleProviderbefore which theRuleinstances supplied by thisRuleProvidershould be executed.- Default:
- {}
-
-
-
beforeIDs
String[] beforeIDs
Returns a list ofRuleProviderIDs before which theRuleinstances supplied by thisRuleProvidershould be executed.This is returned as a list of
RuleProviderIDs in order to support extensions that cannot depend on each other via class names.- Default:
- {}
-
-
-
tags
String[] tags
The tags describing thisRuleProvider.- Default:
- {}
-
-
-
sourceTechnologies
Technology[] sourceTechnologies
A list of source technologies that the annotated rules pertain to.- Default:
- {}
-
-
-
targetTechnologies
Technology[] targetTechnologies
A list of target technologies that the annotated rules pertain to.- Default:
- {}
-
-
-
haltOnException
boolean haltOnException
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.- Default:
- false
-
-
-
overrideProvider
boolean overrideProvider
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.- Default:
- false
-
-