public abstract class IteratingRuleProvider<PAYLOADTYPE extends WindupVertexFrame> extends AbstractRuleProvider
AbstractRuleProvider for cases where the rule simply needs to
provide some query, and wants to execute a function over each resulting row.| Constructor and Description |
|---|
IteratingRuleProvider() |
IteratingRuleProvider(Class<? extends RuleProvider> implementationType,
String id) |
IteratingRuleProvider(RuleProviderMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
org.ocpsoft.rewrite.config.Configuration |
getConfiguration(RuleLoaderContext ruleLoaderContext)
KEEP - The purpose of this override is to make sure that reflection (interface.getClass().getMethods())
keeps a method with the specific type.
|
abstract void |
perform(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
PAYLOADTYPE payload)
Perform this function for each
WindupVertexFrame returned by the "when" clause. |
String |
toStringPerform()
This should return a string describing the operation to be performed by the subclass.
|
abstract org.ocpsoft.rewrite.config.ConditionBuilder |
when()
Gets the condition for the
Configuration's "when" clause. |
enhanceRuleMetadata, equals, getExecutionIndex, getMetadata, handles, hashCode, priority, setExecutionIndex, toStringpublic IteratingRuleProvider()
public IteratingRuleProvider(RuleProviderMetadata metadata)
public IteratingRuleProvider(Class<? extends RuleProvider> implementationType, String id)
public abstract org.ocpsoft.rewrite.config.ConditionBuilder when()
Configuration's "when" clause.public abstract void perform(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, PAYLOADTYPE payload)
WindupVertexFrame returned by the "when" clause.public String toStringPerform()
public final org.ocpsoft.rewrite.config.Configuration getConfiguration(RuleLoaderContext ruleLoaderContext)
RuleProviderCopyright © 2021 JBoss by Red Hat. All rights reserved.