Drools :: Core 6.1.0.Beta1

org.drools.core.reteoo
Class RuleRemovalContext

java.lang.Object
  extended by org.drools.core.reteoo.RuleRemovalContext
All Implemented Interfaces:
Externalizable, Serializable

public class RuleRemovalContext
extends Object
implements Externalizable

This context class is used during rule removal to ensure network consistency.

See Also:
Serialized Form

Nested Class Summary
static interface RuleRemovalContext.CleanupAdapter
           
 
Constructor Summary
RuleRemovalContext(org.kie.api.definition.rule.Rule rule)
           
 
Method Summary
 RuleRemovalContext.CleanupAdapter getCleanupAdapter()
           
 org.kie.api.definition.rule.Rule getRule()
          Returns the reference to the rule being removed from the kbase
 InternalRuleBase getRuleBase()
           
 void readExternal(ObjectInput in)
           
 void setCleanupAdapter(RuleRemovalContext.CleanupAdapter cleanupAdapter)
           
 void setRuleBase(InternalRuleBase ruleBase)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleRemovalContext

public RuleRemovalContext(org.kie.api.definition.rule.Rule rule)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getRule

public org.kie.api.definition.rule.Rule getRule()
Returns the reference to the rule being removed from the kbase

Returns:

setCleanupAdapter

public void setCleanupAdapter(RuleRemovalContext.CleanupAdapter cleanupAdapter)

getCleanupAdapter

public RuleRemovalContext.CleanupAdapter getCleanupAdapter()

getRuleBase

public InternalRuleBase getRuleBase()

setRuleBase

public void setRuleBase(InternalRuleBase ruleBase)

Drools :: Core 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.