org.drools.jsr94.rules
Class Jsr94FactHandle

java.lang.Object
  extended by org.drools.reteoo.FactHandleImpl
      extended by org.drools.jsr94.rules.Jsr94FactHandle
All Implemented Interfaces:
Serializable, Handle, FactHandle

public class Jsr94FactHandle
extends FactHandleImpl
implements Handle

The Drools implementation of the Handle interface which provides a marker interface for Drools-specific object identity mechanism. When using the StatefulRuleSession objects that are added to rule session state are identified using a Drools-supplied Handle implementation.

Handles are used to unambigiously identify objects within the rule session state and should not suffer many of the object identity issues that arise when using muliple class loaders, serializing StatefulRuleSessions, or using Object.equals or object1 == object2 reference equality.

See Also:
Serialized Form

Constructor Summary
Jsr94FactHandle(long id, long recency)
          Constructs a new Handle.
 
Method Summary
 
Methods inherited from class org.drools.reteoo.FactHandleImpl
equals, getId, getRecency, hashCode, toExternalForm, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Jsr94FactHandle

Jsr94FactHandle(long id,
                long recency)
Constructs a new Handle.

Parameters:
id - A unique Handle id.
recency - A value indicating the recency of this Handle (more recently created Handles have greater values than Handles created further in the past)
See Also:
RecencyConflictResolver


Copyright © 2001-2005 The Codehaus. All Rights Reserved.