| java.lang.Object org.drools.jsr94.rules.RuleRuntimeImpl
RuleRuntimeImpl | public class RuleRuntimeImpl implements RuleRuntime(Code) | | 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 Also: RuleRuntime author: N. Alex Rupp (n_alex codehaus.org) |
Method Summary | |
public RuleSession | createRuleSession(String uri, Map properties, int ruleSessionType) Creates a RuleSession implementation using the supplied
Drools-specific rule execution set registration URI. | public List | getRegistrations() Retrieves a List of the URIs that currently have
RuleExecutionSet s associated with them. |
createRuleSession | public RuleSession createRuleSession(String uri, Map properties, int ruleSessionType) throws RuleSessionTypeUnsupportedException, RuleExecutionSetNotFoundException(Code) | | Creates a RuleSession implementation using the supplied
Drools-specific rule execution set registration URI.
Parameters: uri - the URI for the RuleExecutionSet Parameters: properties - additional properties used to create theRuleSession implementation. Parameters: ruleSessionType - the type of rule session to create. throws: RuleSessionTypeUnsupportedException - if the ruleSessionType is not supported by Drools or theRuleExecutionSet throws: RuleExecutionSetNotFoundException - if the URI could not be resolved into aRuleExecutionSet The created RuleSession . |
getRegistrations | public List getRegistrations()(Code) | | Retrieves a List of the URIs that currently have
RuleExecutionSet s associated with them. An empty list is
returned is there are no associations.
a List of String s (URIs) |
|
|