org.drools.jsr94.rules
Class StatelessRuleSessionImpl
java.lang.Object
|
+--org.drools.jsr94.rules.RuleSessionImpl
|
+--org.drools.jsr94.rules.StatelessRuleSessionImpl
- All Implemented Interfaces:
- javax.rules.RuleSession, javax.rules.StatelessRuleSession
- public class StatelessRuleSessionImpl
- extends org.drools.jsr94.rules.RuleSessionImpl
- implements javax.rules.StatelessRuleSession
This interface is a representation of a stateless rules engine session.
A stateless rules engine session exposes a stateless rule execution API to an underlying rules engine.
- Author:
- thomas diesler
- See Also:
StatelessRuleSession
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.rules.RuleSession |
getRuleExecutionSetMetadata, getType, release |
executeRules
public java.util.List executeRules(java.util.List objects)
throws javax.rules.InvalidRuleSessionException
- Specified by:
executeRules
in interface javax.rules.StatelessRuleSession
javax.rules.InvalidRuleSessionException
- See Also:
StatelessRuleSession
executeRules
public java.util.List executeRules(java.util.List objects,
javax.rules.ObjectFilter objectFilter)
throws javax.rules.InvalidRuleSessionException
- Specified by:
executeRules
in interface javax.rules.StatelessRuleSession
javax.rules.InvalidRuleSessionException
- See Also:
StatelessRuleSession.executeRules(List,ObjectFilter)
initWorkingMemory
protected void initWorkingMemory()
newWorkingMemory
protected WorkingMemory newWorkingMemory()
setProperties
protected void setProperties(java.util.Map properties)
getProperties
protected java.util.Map getProperties()
setWorkingMemory
protected void setWorkingMemory(WorkingMemory workingMemory)
getWorkingMemory
protected WorkingMemory getWorkingMemory()
setRuleExecutionSet
protected void setRuleExecutionSet(RuleExecutionSetImpl ruleSet)
getRuleExecutionSet
protected RuleExecutionSetImpl getRuleExecutionSet()
checkRuleSessionValidity
protected void checkRuleSessionValidity()
throws javax.rules.InvalidRuleSessionException
javax.rules.InvalidRuleSessionException
getRuleExecutionSetMetadata
public javax.rules.RuleExecutionSetMetadata getRuleExecutionSetMetadata()
- Returns the meta data for the rule execution set bound to this rule session.
- Specified by:
getRuleExecutionSetMetadata
in interface javax.rules.RuleSession
getType
public int getType()
throws javax.rules.InvalidRuleSessionException
- Returns the type identifier for this RuleSession.
The type identifiers are defined in the RuleRuntime interface.
- Specified by:
getType
in interface javax.rules.RuleSession
javax.rules.InvalidRuleSessionException
reset
public void reset()
release
public void release()
- Specified by:
release
in interface javax.rules.RuleSession
applyFilter
protected void applyFilter(java.util.List objects,
javax.rules.ObjectFilter objectFilter)