public interface RuleLifecycleListener
RuleSubset during execution.| Modifier and Type | Method and Description |
|---|---|
void |
afterExecution(GraphRewrite event)
Called immediately after any
Rule instances are executed. |
void |
afterRuleConditionEvaluation(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
org.ocpsoft.rewrite.config.Rule rule,
boolean result)
Called immediately after execution of the each
Rule. |
void |
afterRuleExecutionFailed(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
org.ocpsoft.rewrite.config.Rule rule,
Throwable failureCause)
Called immediately after a a
Rule has thrown an exception, to indicate a failure of some kind |
void |
afterRuleOperationsPerformed(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
org.ocpsoft.rewrite.config.Rule rule)
Called immediately after
Rule operations are performed (Only called if
Condition.evaluate(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext) returned true). |
void |
beforeExecution(GraphRewrite event)
Called immediately before any
Rule instances are executed. |
boolean |
beforeRuleEvaluation(GraphRewrite event,
org.ocpsoft.rewrite.config.Rule rule,
org.ocpsoft.rewrite.context.EvaluationContext context)
Called immediately before the given
Rule is executed. |
boolean |
beforeRuleOperationsPerformed(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
org.ocpsoft.rewrite.config.Rule rule)
Called immediately before
Rule operations are performed (Only called if
Condition.evaluate(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext) returned true). |
boolean |
ruleEvaluationProgress(GraphRewrite event,
String name,
int currentPosition,
int total,
int timeRemainingInSeconds)
This is optionally called by long-running rules to indicate their current progress and estimated time-remaining.
|
default boolean |
shouldWindupStop()
Returns directly the information whether Windup execution should stop.
|
void beforeExecution(GraphRewrite event)
Rule instances are executed.boolean beforeRuleEvaluation(GraphRewrite event, org.ocpsoft.rewrite.config.Rule rule, org.ocpsoft.rewrite.context.EvaluationContext context)
Rule is executed.WindupProgressMonitor.boolean ruleEvaluationProgress(GraphRewrite event, String name, int currentPosition, int total, int timeRemainingInSeconds)
WindupProgressMonitor.void afterRuleConditionEvaluation(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, org.ocpsoft.rewrite.config.Rule rule, boolean result)
Rule.boolean beforeRuleOperationsPerformed(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, org.ocpsoft.rewrite.config.Rule rule)
Rule operations are performed (Only called if
Condition.evaluate(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext) returned true).WindupProgressMonitor.void afterRuleOperationsPerformed(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, org.ocpsoft.rewrite.config.Rule rule)
Rule operations are performed (Only called if
Condition.evaluate(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext) returned true).void afterRuleExecutionFailed(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, org.ocpsoft.rewrite.config.Rule rule, Throwable failureCause)
Rule has thrown an exception, to indicate a failure of some kindvoid afterExecution(GraphRewrite event)
Rule instances are executed.default boolean shouldWindupStop()
Copyright © 2021 JBoss by Red Hat. All rights reserved.