public abstract class RulePhase extends AbstractRuleProvider
Rules within Windup. When a AbstractRuleProvider specifies a
RulePhase, the results of calling getExecuteAfter() and getExecuteBefore() on the rule will appended to
the results of RuleProviderMetadata.getExecuteAfter() and getExecuteBefore().
In this way, most AbstractRuleProviders will be able to simply specify a RulePhase in order to determine their approximate
placement within the execution lifecycle.| Constructor and Description |
|---|
RulePhase(Class<? extends RulePhase> implementationType) |
| Modifier and Type | Method and Description |
|---|---|
org.ocpsoft.rewrite.config.Configuration |
getConfiguration(RuleLoaderContext ruleLoaderContext)
This will always return an empty
Configuration as these are just barriers that do not provide additional
Rules. |
abstract Class<? extends RulePhase> |
getExecuteAfter()
|
abstract Class<? extends RulePhase> |
getExecuteBefore()
|
RuleProviderMetadata |
getMetadata()
Get the
RuleProviderMetadata for this RuleProvider. |
void |
setExecuteAfter(Class<? extends RulePhase> previousPhase)
This allows the sorter to link
RulePhases to each other, without them having to explicitly specify both
the executeAfter and executeBefore. |
void |
setExecuteBefore(Class<? extends RulePhase> nextPhase)
This allows the sorter to link
RulePhases to each other, without them having to explicitly specify both
the executeAfter and executeBefore. |
enhanceRuleMetadata, equals, getExecutionIndex, handles, hashCode, priority, setExecutionIndex, toStringpublic final org.ocpsoft.rewrite.config.Configuration getConfiguration(RuleLoaderContext ruleLoaderContext)
Configuration as these are just barriers that do not provide additional
Rules.public final RuleProviderMetadata getMetadata()
RuleProviderRuleProviderMetadata for this RuleProvider.getMetadata in interface RuleProvidergetMetadata in class AbstractRuleProviderpublic final void setExecuteAfter(Class<? extends RulePhase> previousPhase)
RulePhases to each other, without them having to explicitly specify both
the executeAfter and executeBefore.Copyright © 2021 JBoss by Red Hat. All rights reserved.