public final class MRuleRuntime extends Object implements javax.rules.RuleRuntime
Modifier and Type | Method and Description |
---|---|
AbstractMRuleSession |
createRuleSession(Map<String,String> parameters)
Real entry point for stateless sessions. uri is specified in parameters.RuleRunt
|
AbstractMRuleSession |
createRuleSession(String uri,
Map parameters,
int ruleSessionType)
JSR94 entry point.
|
MStatefulRuleSession |
createStatefulRuleSession(Map<String,String> parameters)
Real entry point for stateful sessions. uri is specified in parameters.
|
MStatelessRuleSession |
createStatelessRuleSession(Map<String,String> parameters)
Real entry point for stateless sessions. uri is specified in parameters.
|
static MRuleRuntime |
getInstance() |
List<String> |
getRegistrations()
All known URIs.
|
public static MRuleRuntime getInstance()
public AbstractMRuleSession createRuleSession(String uri, Map parameters, int ruleSessionType) throws MRuleSessionTypeUnsupportedException, MRuleSessionCreateException
createRuleSession
in interface javax.rules.RuleRuntime
uri
- URI (or name) of rule engineparameters
- Map [Key (String) ; Value (String)]ruleSessionType
- rule session typeMRuleSessionTypeUnsupportedException
MRuleSessionCreateException
RuleRuntime.createRuleSession(String, Map, int)
public AbstractMRuleSession createRuleSession(Map<String,String> parameters) throws MRuleSessionTypeUnsupportedException, MRuleSessionCreateException
public MStatelessRuleSession createStatelessRuleSession(Map<String,String> parameters) throws MRuleSessionCreateException
MRuleSessionCreateException
public MStatefulRuleSession createStatefulRuleSession(Map<String,String> parameters) throws MRuleSessionCreateException
MRuleSessionCreateException