The Drools implementation of the
RuleRuntime
interface which is the access point for runtime execution of
RuleExecutionSet
s. It provides methods to create
RuleSession
implementation as well as methods to retrieve
RuleExecutionSet
s that have been previously registered using the
RuleAdministrator
.
The
RuleRuntime
should be accessed through the
RuleServiceProvider
. An instance of the
RuleRuntime
can be retrieved by calling:
RuleServiceProvider ruleServiceProvider = RuleServiceProvider.newInstance();
RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime();
Note: the release method must be called on the
RuleSession
to clean up all resources used by the
RuleSession
.
@see RuleRuntime
@author N. Alex Rupp (n_alex
codehaus.org)