站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

RuleExecutionSetProviderImpl (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.jsr94.rules.admin
Class RuleExecutionSetProviderImpl

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

public class RuleExecutionSetProviderImpl
extends 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.

Author:
N. Alex Rupp (n_alex codehaus.org), thomas diesler , michael frandsen
See Also:
RuleExecutionSetProvider

Constructor Summary
RuleExecutionSetProviderImpl()
           
 
Method Summary
 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.
 
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(Element ruleExecutionSetElement,
                                                                 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
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.
Throws:
javax.rules.admin.RuleExecutionSetCreateException - on rule execution set creation error.

createRuleExecutionSet

public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(Serializable ruleExecutionSetAst,
                                                                 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
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.
Throws:
javax.rules.admin.RuleExecutionSetCreateException - on rule execution set creation error.

createRuleExecutionSet

public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(String ruleExecutionSetUri,
                                                                 Map properties)
                                                          throws javax.rules.admin.RuleExecutionSetCreateException,
                                                                 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
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.
Throws:
javax.rules.admin.RuleExecutionSetCreateException - on rule execution set creation error.
IOException - if an I/O error occurs while accessing the URI


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