org.drools.jsr94.rules
Class Jsr94FactHandleFactory

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

public final class Jsr94FactHandleFactory
extends Object
implements FactHandleFactory

A factory for creating Handles.

See Also:
Serialized Form

Method Summary
static Jsr94FactHandleFactory getInstance()
          Gets the Singleton instance of a Jsr94FactHandleFactory.
 FactHandle newFactHandle()
          Returns a new Handle.
 FactHandle newFactHandle(long id)
          Returns a new Handle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Jsr94FactHandleFactory getInstance()
Gets the Singleton instance of a Jsr94FactHandleFactory.

Returns:
The Singleton instance of the repository.

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.


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