public class RuleExecutionSetProviderImpl extends Object implements javax.rules.admin.RuleExecutionSetProvider
RuleExecutionSetProvider
interface which defines RuleExecutionSet
creation methods for
defining RuleExecutionSet
s from potentially serializable
resources.RuleExecutionSetProvider
Constructor and Description |
---|
RuleExecutionSetProviderImpl() |
Modifier and Type | Method and Description |
---|---|
javax.rules.admin.RuleExecutionSet |
createRuleExecutionSet(Element ruleExecutionSetElement,
Map properties)
Creates a
RuleExecutionSet implementation from an XML
Document and additional Drools-specific properties. |
javax.rules.admin.RuleExecutionSet |
createRuleExecutionSet(Serializable ruleExecutionSetAst,
Map properties)
Creates a
RuleExecutionSet implementation from a
Drools-specific Abstract Syntax Tree (AST) representation and
Drools-specific properties. |
javax.rules.admin.RuleExecutionSet |
createRuleExecutionSet(String ruleExecutionSetUri,
Map properties)
Creates a
RuleExecutionSet implementation from a URI. |
public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(Element ruleExecutionSetElement, Map properties) throws javax.rules.admin.RuleExecutionSetCreateException
RuleExecutionSet
implementation from an XML
Document and additional Drools-specific properties. A Drools-specific
rule execution set is read from the supplied XML Document.createRuleExecutionSet
in interface javax.rules.admin.RuleExecutionSetProvider
ruleExecutionSetElement
- the XML element that is the source of the
rule execution setproperties
- additional properties used to create the
RuleExecutionSet
implementation.
May be null
.RuleExecutionSet
.javax.rules.admin.RuleExecutionSetCreateException
- on rule execution set creation
error.public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(Serializable ruleExecutionSetAst, Map properties) throws javax.rules.admin.RuleExecutionSetCreateException
RuleExecutionSet
implementation from a
Drools-specific Abstract Syntax Tree (AST) representation and
Drools-specific properties.
This method accepts a org.kie.RuleBase
object as its
vendor-specific AST representation.createRuleExecutionSet
in interface javax.rules.admin.RuleExecutionSetProvider
ruleExecutionSetAst
- the Drools representation of a
rule execution setproperties
- additional properties used to create the
RuleExecutionSet
implementation.
May be null
.RuleExecutionSet
.javax.rules.admin.RuleExecutionSetCreateException
- on rule execution set creation
error.public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(String ruleExecutionSetUri, Map properties) throws javax.rules.admin.RuleExecutionSetCreateException, IOException
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.createRuleExecutionSet
in interface javax.rules.admin.RuleExecutionSetProvider
ruleExecutionSetUri
- the URI to load the rule execution set fromproperties
- additional properties used to create the
RuleExecutionSet
implementation.
May be null
.RuleExecutionSet
.javax.rules.admin.RuleExecutionSetCreateException
- on rule execution set creation
error.IOException
- if an I/O error occurs while accessing the URICopyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.