public abstract class AbstractRuleLifecycleListener extends Object implements RuleLifecycleListener
RuleLifecycleListeners that only need to override a subset of
the available methods.| Constructor and Description |
|---|
AbstractRuleLifecycleListener() |
| 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.
|
boolean |
shouldWindupStop()
Returns directly the information whether Windup execution should stop.
|
public void beforeExecution(GraphRewrite event)
RuleLifecycleListenerRule instances are executed.beforeExecution in interface RuleLifecycleListenerpublic boolean beforeRuleEvaluation(GraphRewrite event, org.ocpsoft.rewrite.config.Rule rule, org.ocpsoft.rewrite.context.EvaluationContext context)
RuleLifecycleListenerRule is executed.beforeRuleEvaluation in interface RuleLifecycleListenerWindupProgressMonitor.public boolean ruleEvaluationProgress(GraphRewrite event, String name, int currentPosition, int total, int timeRemainingInSeconds)
RuleLifecycleListenerruleEvaluationProgress in interface RuleLifecycleListenerWindupProgressMonitor.public void afterRuleConditionEvaluation(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, org.ocpsoft.rewrite.config.Rule rule, boolean result)
RuleLifecycleListenerRule.afterRuleConditionEvaluation in interface RuleLifecycleListenerpublic boolean beforeRuleOperationsPerformed(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, org.ocpsoft.rewrite.config.Rule rule)
RuleLifecycleListenerRule operations are performed (Only called if
Condition.evaluate(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext) returned true).beforeRuleOperationsPerformed in interface RuleLifecycleListenerWindupProgressMonitor.public void afterRuleOperationsPerformed(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, org.ocpsoft.rewrite.config.Rule rule)
RuleLifecycleListenerRule operations are performed (Only called if
Condition.evaluate(org.ocpsoft.rewrite.event.Rewrite, EvaluationContext) returned true).afterRuleOperationsPerformed in interface RuleLifecycleListenerpublic void afterRuleExecutionFailed(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, org.ocpsoft.rewrite.config.Rule rule, Throwable failureCause)
RuleLifecycleListenerRule has thrown an exception, to indicate a failure of some kindafterRuleExecutionFailed in interface RuleLifecycleListenerpublic void afterExecution(GraphRewrite event)
RuleLifecycleListenerRule instances are executed.afterExecution in interface RuleLifecycleListenerpublic boolean shouldWindupStop()
RuleLifecycleListenershouldWindupStop in interface RuleLifecycleListenerCopyright © 2021 JBoss by Red Hat. All rights reserved.