org.drools.jsr94.rules
Class Jsr94FactHandleFactory

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

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()
          Construct a handle with a new id.
 FactHandle newFactHandle(long id)
          Construct a handle with a specified id.
 
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()
Description copied from interface: FactHandleFactory
Construct a handle with a new id.

Specified by:
newFactHandle in interface FactHandleFactory
Returns:
The handle.

newFactHandle

public FactHandle newFactHandle(long id)
Description copied from interface: FactHandleFactory
Construct a handle with a specified id.

Specified by:
newFactHandle in interface FactHandleFactory
Parameters:
id - The id to use.
Returns:
The handle.


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