org.drools.spi
Interface FactHandleFactory

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractFactHandleFactory

public interface FactHandleFactory
extends java.io.Serializable

Factory Interface to return new FactHandles

See Also:
FactHandle
 

Method Summary
 void destroyFactHandle(InternalFactHandle factHandle)
           
 java.lang.Class getFactHandleType()
           
 void increaseFactHandleRecency(InternalFactHandle factHandle)
          Increases the recency of the FactHandle
 InternalFactHandle newFactHandle(java.lang.Object object)
          Construct a handle with a new id.
 FactHandleFactory newInstance()
           
 

Method Detail

newFactHandle

public InternalFactHandle newFactHandle(java.lang.Object object)
Construct a handle with a new id.

Returns:
The handle.

increaseFactHandleRecency

public void increaseFactHandleRecency(InternalFactHandle factHandle)
Increases the recency of the FactHandle

Parameters:
factHandle - The fact handle to have its recency increased.

destroyFactHandle

public void destroyFactHandle(InternalFactHandle factHandle)

newInstance

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

getFactHandleType

public java.lang.Class getFactHandleType()