com.haley.haleyrules.jsr94
Class RuleAdministratorImpl
java.lang.Object
|
+--com.haley.haleyrules.jsr94.RuleAdministratorImpl
- All Implemented Interfaces:
- javax.rules.admin.RuleAdministrator
- public class RuleAdministratorImpl
- extends java.lang.Object
- implements javax.rules.admin.RuleAdministrator
This class implements the RuleAdministrator interface. The RuleAdministrator inteface 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.
|
Method Summary |
void |
deregisterRuleExecutionSet(java.lang.String bindURI,
java.util.Map properties)
Deregisters a previously registers RuleExecutionSet from a URI. |
javax.rules.admin.LocalRuleExecutionSetProvider |
getLocalRuleExecutionSetProvider(java.util.Map properties)
Returns a LocalRuleExecutionSetProvider implementation or null if this implementation does not support
creating a RuleExecutionSet from non-serializable resources. |
javax.rules.admin.RuleExecutionSetProvider |
getRuleExecutionSetProvider(java.util.Map properties)
Gets a RuleExecutionSetProvider implementation |
void |
registerRuleExecutionSet(java.lang.String bindURI,
javax.rules.admin.RuleExecutionSet set,
java.util.Map properties)
Registers a RuleExecutionSet and associates it with a given URI. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getRuleExecutionSetProvider
public javax.rules.admin.RuleExecutionSetProvider getRuleExecutionSetProvider(java.util.Map properties)
- Gets a RuleExecutionSetProvider implementation
- Specified by:
getRuleExecutionSetProvider in interface javax.rules.admin.RuleAdministrator
- Parameters:
properties - additional properties- Returns:
- RuleExecutionSetProvider
getLocalRuleExecutionSetProvider
public javax.rules.admin.LocalRuleExecutionSetProvider getLocalRuleExecutionSetProvider(java.util.Map properties)
- Returns a LocalRuleExecutionSetProvider implementation or null if this implementation does not support
creating a RuleExecutionSet from non-serializable resources.
- Specified by:
getLocalRuleExecutionSetProvider in interface javax.rules.admin.RuleAdministrator
- Parameters:
properties - additional properties- Returns:
- LocalRuleExecutionSetProvider
registerRuleExecutionSet
public void registerRuleExecutionSet(java.lang.String bindURI,
javax.rules.admin.RuleExecutionSet set,
java.util.Map properties)
throws javax.rules.admin.RuleExecutionSetRegisterException
- Registers a RuleExecutionSet and associates it with a given URI. Once a RuleExecutionSet has been registered
it is acessible 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.
- Specified by:
registerRuleExecutionSet in interface javax.rules.admin.RuleAdministrator
- Parameters:
bindURI - the URI to associate with the RuleExecutionSet.set - the RuleExecutionSet to associate with the URIproperties - additional properties used to perform the registration- Throws:
javax.rules.admin.RuleExecutionSetRegisterException - if an error occured that prevented registration
deregisterRuleExecutionSet
public void deregisterRuleExecutionSet(java.lang.String bindURI,
java.util.Map properties)
- Deregisters a previously registers RuleExecutionSet from a URI.
- Specified by:
deregisterRuleExecutionSet in interface javax.rules.admin.RuleAdministrator
- Parameters:
bindURI - the URI to disassociate with the RuleExecutionSet.properties - additional properties used to perform the deregisteration
Copyright © 2005-2006 Haley Systems, Inc. All Rights Reserved.