org.drools.jsr94.rules.repository
Class DefaultRuleExecutionSetRepository

java.lang.Object
  extended by org.drools.jsr94.rules.repository.DefaultRuleExecutionSetRepository
All Implemented Interfaces:
Serializable, RuleExecutionSetRepository

public class DefaultRuleExecutionSetRepository
extends Object
implements RuleExecutionSetRepository

Stores the registered RuleExecutionSet objects.

See Also:
Serialized Form

Constructor Summary
DefaultRuleExecutionSetRepository()
           
 
Method Summary
 List getRegistrations()
          Retrieves a List of the URIs that currently have RuleExecutionSets associated with them.
 javax.rules.admin.RuleExecutionSet getRuleExecutionSet(String bindUri, Map properties)
          Get the RuleExecutionSet bound to this URI, or return null.
 void registerRuleExecutionSet(String bindUri, javax.rules.admin.RuleExecutionSet ruleSet, Map properties)
          Register a RuleExecutionSet under the given URI.
 void unregisterRuleExecutionSet(String bindUri, Map properties)
          Unregister a RuleExecutionSet from the given URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRuleExecutionSetRepository

public DefaultRuleExecutionSetRepository()
Method Detail

getRegistrations

public List getRegistrations()
                      throws RuleExecutionSetRepositoryException
Description copied from interface: RuleExecutionSetRepository
Retrieves a List of the URIs that currently have RuleExecutionSets associated with them. An empty list is returned if there are no associations.

Specified by:
getRegistrations in interface RuleExecutionSetRepository
Returns:
a List of the URIs that currently have RuleExecutionSets associated with them.
Throws:
RuleExecutionSetRepositoryException

getRuleExecutionSet

public javax.rules.admin.RuleExecutionSet getRuleExecutionSet(String bindUri,
                                                              Map properties)
                                                       throws RuleExecutionSetRepositoryException
Description copied from interface: RuleExecutionSetRepository
Get the RuleExecutionSet bound to this URI, or return null.

Specified by:
getRuleExecutionSet in interface RuleExecutionSetRepository
Parameters:
bindUri - the URI associated with the wanted RuleExecutionSet.
Returns:
the RuleExecutionSet bound to the given URI.
Throws:
RuleExecutionSetRepositoryException

registerRuleExecutionSet

public void registerRuleExecutionSet(String bindUri,
                                     javax.rules.admin.RuleExecutionSet ruleSet,
                                     Map properties)
                              throws javax.rules.admin.RuleExecutionSetRegisterException
Description copied from interface: RuleExecutionSetRepository
Register a RuleExecutionSet under the given URI.

Specified by:
registerRuleExecutionSet in interface RuleExecutionSetRepository
Parameters:
bindUri - the URI to associate with the RuleExecutionSet.
ruleSet - the RuleExecutionSet to associate with the URI
Throws:
javax.rules.admin.RuleExecutionSetRegisterException - if an error occurred that prevented registration (i.e. if bindUri or ruleSet are null)

unregisterRuleExecutionSet

public void unregisterRuleExecutionSet(String bindUri,
                                       Map properties)
                                throws javax.rules.admin.RuleExecutionSetDeregistrationException
Description copied from interface: RuleExecutionSetRepository
Unregister a RuleExecutionSet from the given URI.

Specified by:
unregisterRuleExecutionSet in interface RuleExecutionSetRepository
Parameters:
bindUri - the URI to disassociate with the RuleExecutionSet.
Throws:
javax.rules.admin.RuleExecutionSetDeregistrationException - if an error occurred that prevented deregistration


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.