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

Method Summary
 java.util.List executeRules(java.util.List list)
          Executes the rules in the bound rule execution set using the supplied list of objects until no rule is executable anymore.
 java.util.List executeRules(java.util.List list, javax.rules.ObjectFilter objectFilter)
          Executes the rules in the bound rule execution set using the supplied list of objects until no rule is executable anymore.
 javax.rules.RuleExecutionSetMetadata getRuleExecutionSetMetadata()
          Returns the meta data for the rule execution set bound to this rule session.
 int getType()
          Returns the type identifier for this RuleSession.
 void release()
          Releases all resources used by this rule session.
 
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
 

Method Detail

executeRules

public java.util.List executeRules(java.util.List list)
                            throws javax.rules.InvalidRuleSessionException
Executes the rules in the bound rule execution set using the supplied list of objects until no rule is executable anymore. A List is returned over all objects created by the executed rules that pass the default RuleExecutionSet ObjectFilter (if present).
Specified by:
executeRules in interface javax.rules.StatelessRuleSession
See Also:
StatelessRuleSession.executeRules(List)

executeRules

public java.util.List executeRules(java.util.List list,
                                   javax.rules.ObjectFilter objectFilter)
                            throws javax.rules.InvalidRuleSessionException
Executes the rules in the bound rule execution set using the supplied list of objects until no rule is executable anymore. An iterator is returned over all objects created by the executed rules and filtered with the supplied object filter.
Specified by:
executeRules in interface javax.rules.StatelessRuleSession
See Also:
StatelessRuleSession.executeRules(List,ObjectFilter)

release

public void release()
Releases all resources used by this rule session. This method renders this rule session unusable until it is reacquired through the RuleRuntime.
Specified by:
release in interface javax.rules.RuleSession
Overrides:
release in class org.drools.jsr94.rules.RuleSessionImpl

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


Copyright © 2001-2003 The Werken Company. All Rights Reserved.