|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.jsr94.rules.RuleRuntimeImpl
public class RuleRuntimeImpl
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
.
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
.
RuleRuntime
Constructor Summary | |
---|---|
RuleRuntimeImpl(RuleExecutionSetRepository repository)
Create a new RuleRuntimeImpl . |
Method Summary | |
---|---|
RuleSession |
createRuleSession(java.lang.String uri,
java.util.Map properties,
int ruleSessionType)
Creates a RuleSession implementation using the supplied
Drools-specific rule execution set registration URI. |
java.util.List |
getRegistrations()
Retrieves a List of the URIs that currently have
RuleExecutionSet s associated with them. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleRuntimeImpl(RuleExecutionSetRepository repository)
RuleRuntimeImpl
.
Method Detail |
---|
public RuleSession createRuleSession(java.lang.String uri, java.util.Map properties, int ruleSessionType) throws RuleSessionTypeUnsupportedException, RuleExecutionSetNotFoundException
RuleSession
implementation using the supplied
Drools-specific rule execution set registration URI.
uri
- the URI for the RuleExecutionSet
properties
- additional properties used to create the
RuleSession
implementation.ruleSessionType
- the type of rule session to create.
RuleSession
.
RuleSessionTypeUnsupportedException
- if the ruleSessionType is not supported by Drools or the
RuleExecutionSet
RuleExecutionSetNotFoundException
- if the URI could not be resolved into a
RuleExecutionSet
public java.util.List getRegistrations()
List
of the URIs that currently have
RuleExecutionSet
s associated with them. An empty list is
returned is there are no associations.
List
of String
s (URIs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |