Package org.jboss.windup.config.phase
Class RulePhase
- java.lang.Object
-
- org.ocpsoft.rewrite.context.ContextBase
-
- org.jboss.windup.config.AbstractRuleProvider
-
- org.jboss.windup.config.phase.RulePhase
-
- All Implemented Interfaces:
RuleProvider,org.ocpsoft.common.pattern.Specialized<Object>,org.ocpsoft.common.pattern.Weighted,org.ocpsoft.rewrite.config.ConfigurationProvider<RuleLoaderContext>,org.ocpsoft.rewrite.context.Context
- Direct Known Subclasses:
ArchiveExtractionPhase,ArchiveMetadataExtractionPhase,ClassifyFileTypesPhase,DecompilationPhase,DependentPhase,DiscoverProjectStructurePhase,DiscoveryPhase,FinalizePhase,InitialAnalysisPhase,InitializationPhase,MigrationRulesPhase,PostFinalizePhase,PostMigrationRulesPhase,PostReportGenerationPhase,PostReportRenderingPhase,PreReportGenerationPhase,ReportGenerationPhase,ReportRenderingPhase
public abstract class RulePhase extends AbstractRuleProvider
Provides a shorthand for stating the order of execution ofRules within Windup. When aAbstractRuleProviderspecifies aRulePhase, the results of callinggetExecuteAfter()andgetExecuteBefore()on the rule will appended to the results ofRuleProviderMetadata.getExecuteAfter()andgetExecuteBefore(). In this way, mostAbstractRuleProviders will be able to simply specify aRulePhasein order to determine their approximate placement within the execution lifecycle.- Author:
- Jesse Sightler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.ocpsoft.rewrite.config.ConfigurationgetConfiguration(RuleLoaderContext ruleLoaderContext)This will always return an emptyConfigurationas these are just barriers that do not provide additionalRules.abstract Class<? extends RulePhase>getExecuteAfter()abstract Class<? extends RulePhase>getExecuteBefore()RuleProviderMetadatagetMetadata()Get theRuleProviderMetadatafor thisRuleProvider.voidsetExecuteAfter(Class<? extends RulePhase> previousPhase)This allows the sorter to linkRulePhases to each other, without them having to explicitly specify both the executeAfter and executeBefore.voidsetExecuteBefore(Class<? extends RulePhase> nextPhase)This allows the sorter to linkRulePhases to each other, without them having to explicitly specify both the executeAfter and executeBefore.-
Methods inherited from class org.jboss.windup.config.AbstractRuleProvider
enhanceRuleMetadata, equals, getExecutionIndex, handles, hashCode, priority, setExecutionIndex, toString
-
-
-
-
Method Detail
-
getConfiguration
public final org.ocpsoft.rewrite.config.Configuration getConfiguration(RuleLoaderContext ruleLoaderContext)
This will always return an emptyConfigurationas these are just barriers that do not provide additionalRules.
-
getMetadata
public final RuleProviderMetadata getMetadata()
Description copied from interface:RuleProviderGet theRuleProviderMetadatafor thisRuleProvider.- Specified by:
getMetadatain interfaceRuleProvider- Overrides:
getMetadatain classAbstractRuleProvider
-
setExecuteAfter
public final void setExecuteAfter(Class<? extends RulePhase> previousPhase)
This allows the sorter to linkRulePhases to each other, without them having to explicitly specify both the executeAfter and executeBefore.
-
-