org.drools.jsr94.rules.admin
Class RuleExecutionSetProviderImpl

java.lang.Object
  extended byorg.drools.jsr94.rules.admin.RuleExecutionSetProviderImpl
All Implemented Interfaces:
javax.rules.admin.RuleExecutionSetProvider

public class RuleExecutionSetProviderImpl
extends java.lang.Object
implements javax.rules.admin.RuleExecutionSetProvider

The Drools implementation of the RuleExecutionSetProvider interface which defines RuleExecutionSet creation methods for defining RuleExecutionSets from potentially serializable resources.

See Also:
RuleExecutionSetProvider
 

Constructor Summary
RuleExecutionSetProviderImpl()
           
 
Method Summary
 javax.rules.admin.RuleExecutionSet createRuleExecutionSet(org.w3c.dom.Element ruleExecutionSetElement, java.util.Map properties)
          Creates a RuleExecutionSet implementation from an XML Document and additional Drools-specific properties.
 javax.rules.admin.RuleExecutionSet createRuleExecutionSet(java.io.Serializable ruleExecutionSetAst, java.util.Map properties)
          Creates a RuleExecutionSet implementation from a Drools-specific Abstract Syntax Tree (AST) representation and Drools-specific properties.
 javax.rules.admin.RuleExecutionSet createRuleExecutionSet(java.lang.String ruleExecutionSetUri, java.util.Map properties)
          Creates a RuleExecutionSet implementation from a URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleExecutionSetProviderImpl

public RuleExecutionSetProviderImpl()
Method Detail

createRuleExecutionSet

public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(org.w3c.dom.Element ruleExecutionSetElement,
                                                                 java.util.Map properties)
                                                          throws javax.rules.admin.RuleExecutionSetCreateException
Creates a RuleExecutionSet implementation from an XML Document and additional Drools-specific properties. A Drools-specific rule execution set is read from the supplied XML Document.

Specified by:
createRuleExecutionSet in interface javax.rules.admin.RuleExecutionSetProvider
Throws:
javax.rules.admin.RuleExecutionSetCreateException - on rule execution set creation error.
Parameters:
ruleExecutionSetElement - the XML element that is the source of the rule execution set
properties - additional properties used to create the RuleExecutionSet implementation. May be null.
Returns:
The created RuleExecutionSet.

createRuleExecutionSet

public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(java.io.Serializable ruleExecutionSetAst,
                                                                 java.util.Map properties)
                                                          throws javax.rules.admin.RuleExecutionSetCreateException
Creates a RuleExecutionSet implementation from a Drools-specific Abstract Syntax Tree (AST) representation and Drools-specific properties.

This method accepts a org.drools.RuleBase object as its vendor-specific AST representation.

Specified by:
createRuleExecutionSet in interface javax.rules.admin.RuleExecutionSetProvider
Throws:
javax.rules.admin.RuleExecutionSetCreateException - on rule execution set creation error.
Parameters:
ruleExecutionSetAst - the Drools representation of a rule execution set
properties - additional properties used to create the RuleExecutionSet implementation. May be null.
Returns:
The created RuleExecutionSet.

createRuleExecutionSet

public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(java.lang.String ruleExecutionSetUri,
                                                                 java.util.Map properties)
                                                          throws javax.rules.admin.RuleExecutionSetCreateException,
                                                                 java.io.IOException
Creates a RuleExecutionSet implementation from a URI. The URI is opaque to the specification and may be used to refer to the file system, a database, or Drools-specific datasource.

Specified by:
createRuleExecutionSet in interface javax.rules.admin.RuleExecutionSetProvider
Throws:
javax.rules.admin.RuleExecutionSetCreateException - on rule execution set creation error.
java.io.IOException - if an I/O error occurs while accessing the URI
Parameters:
ruleExecutionSetUri - the URI to load the rule execution set from
properties - additional properties used to create the RuleExecutionSet implementation. May be null.
Returns:
The created RuleExecutionSet.