org.drools.reteoo
Class RuleRemovalContext

java.lang.Object
  extended by org.drools.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.drools.definition.rule.Rule rule)
           
 
Method Summary
 RuleRemovalContext.CleanupAdapter getCleanupAdapter()
           
 org.drools.definition.rule.Rule getRule()
          Returns the reference to the rule being removed from the kbase
 void readExternal(ObjectInput in)
           
 void setCleanupAdapter(RuleRemovalContext.CleanupAdapter cleanupAdapter)
           
 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.drools.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.drools.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()


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