public class RuleAdministratorImpl extends Object implements javax.rules.admin.RuleAdministrator, Serializable
RuleAdministrator interface
which is used by rule execution set administrators to load rule execution
sets from external sources and create a RuleExecutionSet
runtime object. The RuleAdministrator should be accessed
by calling:
RuleServiceProvider ruleServiceProvider =
RuleServiceProvider.newInstance();
RuleAdministrator ruleAdministration =
ruleServiceProvider.getRuleAdministrator();
In an additional step the administrator may also choose to bind the
RuleExecutionSet instance to a URI so that it is globally
accessible and RuleSessions can be created for the
RuleExecutionSet through the RuleRuntime.RuleAdministrator,
Serialized Form| Constructor and Description |
|---|
RuleAdministratorImpl(RuleExecutionSetRepository repository)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterRuleExecutionSet(String bindUri,
Map properties)
Unregisters a previously registered
RuleExecutionSet from
a URI. |
javax.rules.admin.LocalRuleExecutionSetProvider |
getLocalRuleExecutionSetProvider(Map properties)
Returns a
LocalRuleExecutionSetProvider implementation. |
javax.rules.admin.RuleExecutionSetProvider |
getRuleExecutionSetProvider(Map properties)
Returns a
RuleExecutionSetProvider implementation. |
void |
registerRuleExecutionSet(String bindUri,
javax.rules.admin.RuleExecutionSet set,
Map properties)
Registers a
RuleExecutionSet and associates it with a
given URI. |
public RuleAdministratorImpl(RuleExecutionSetRepository repository)
public javax.rules.admin.RuleExecutionSetProvider getRuleExecutionSetProvider(Map properties)
RuleExecutionSetProvider implementation.getRuleExecutionSetProvider in interface javax.rules.admin.RuleAdministratorproperties - additional propertiesRuleExecutionSetProvider.public javax.rules.admin.LocalRuleExecutionSetProvider getLocalRuleExecutionSetProvider(Map properties)
LocalRuleExecutionSetProvider implementation.
Returns a LocalRuleExecutionSetProvider implementation or
null if this implementation does not support creating a
RuleExecutionSet from non-serializable resources.getLocalRuleExecutionSetProvider in interface javax.rules.admin.RuleAdministratorproperties - additional propertiesLocalRuleExecutionSetProvider.public void registerRuleExecutionSet(String bindUri, javax.rules.admin.RuleExecutionSet set, Map properties) throws javax.rules.admin.RuleExecutionSetRegisterException
RuleExecutionSet and associates it with a
given URI. Once a RuleExecutionSet has been registered it
is accessible to runtime clients through the RuleRuntime.
If a RuleExecutionSet has already been associated with the
URI it should be deregistered (as if
deregisterRuleExecutionSet/ had been called) and the URI
should be associated with the new RuleExecutionSet.registerRuleExecutionSet in interface javax.rules.admin.RuleAdministratorbindUri - the URI to associate with the RuleExecutionSet.set - the RuleExecutionSet to associate with the URIproperties - additional properties used to perform the registrationjavax.rules.admin.RuleExecutionSetRegisterException - if an error occurred that prevented registrationpublic void deregisterRuleExecutionSet(String bindUri, Map properties) throws javax.rules.admin.RuleExecutionSetDeregistrationException
RuleExecutionSet from
a URI.deregisterRuleExecutionSet in interface javax.rules.admin.RuleAdministratorbindUri - the URI to disassociate with the RuleExecutionSet.properties - additional properties used to perform the deregistrationjavax.rules.admin.RuleExecutionSetDeregistrationException - if an error occurred that prevented unregistrationCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.