org.drools.jsr94.rules.repository
Interface RuleExecutionSetRepository

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultRuleExecutionSetRepository

public interface RuleExecutionSetRepository
extends Serializable

Stores the registered RuleExecutionSet objects.


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.
 

Method Detail

getRegistrations

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

Returns:
a List of the URIs that currently have RuleExecutionSets associated with them.
Throws:
RuleExecutionSetRepositoryException

getRuleExecutionSet

javax.rules.admin.RuleExecutionSet getRuleExecutionSet(String bindUri,
                                                       Map properties)
                                                       throws RuleExecutionSetRepositoryException
Get the RuleExecutionSet bound to this URI, or return null.

Parameters:
bindUri - the URI associated with the wanted RuleExecutionSet.
properties -
Returns:
the RuleExecutionSet bound to the given URI.
Throws:
RuleExecutionSetRepositoryException

registerRuleExecutionSet

void registerRuleExecutionSet(String bindUri,
                              javax.rules.admin.RuleExecutionSet ruleSet,
                              Map properties)
                              throws javax.rules.admin.RuleExecutionSetRegisterException
Register a RuleExecutionSet under the given URI.

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

unregisterRuleExecutionSet

void unregisterRuleExecutionSet(String bindUri,
                                Map properties)
                                throws javax.rules.admin.RuleExecutionSetDeregistrationException
Unregister a RuleExecutionSet from the given URI.

Parameters:
bindUri - the URI to disassociate with the RuleExecutionSet.
properties -
Throws:
javax.rules.admin.RuleExecutionSetDeregistrationException - if an error occurred that prevented deregistration


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