org.drools.jsr94.rules
Class Jsr94FactHandleFactory

java.lang.Object
  extended by org.drools.jsr94.rules.Jsr94FactHandleFactory
All Implemented Interfaces:
java.io.Serializable, FactHandleFactory

public final class Jsr94FactHandleFactory
extends java.lang.Object
implements FactHandleFactory

A factory for creating Handles.

See Also:
Serialized Form

Constructor Summary
Jsr94FactHandleFactory()
           
 
Method Summary
 FactHandle newFactHandle()
          Returns a new Handle.
 FactHandle newFactHandle(long id)
          Returns a new Handle.
 FactHandleFactory newInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jsr94FactHandleFactory

public Jsr94FactHandleFactory()
Method Detail

newFactHandle

public FactHandle newFactHandle()
Returns a new Handle.

Specified by:
newFactHandle in interface FactHandleFactory
Returns:
a new Handle.

newFactHandle

public FactHandle newFactHandle(long id)
Returns a new Handle.

Specified by:
newFactHandle in interface FactHandleFactory
Parameters:
id - A unique Handle id.
Returns:
a new Handle with the given id.

newInstance

public FactHandleFactory newInstance()
Specified by:
newInstance in interface FactHandleFactory
Returns:
a fresh instance of the fact handle factory, with any IDs reset etc.