org.drools.jsr94.rules.admin
Class LocalRuleExecutionSetProviderImpl

java.lang.Object
  extended by org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl

public class LocalRuleExecutionSetProviderImpl
extends java.lang.Object

The Drools implementation of the LocalRuleExecutionSetProvider interface which defines RuleExecutionSet creation methods for defining RuleExecutionSets from local (non-serializable) resources.

See Also:
LocalRuleExecutionSetProvider
 

Constructor Summary
LocalRuleExecutionSetProviderImpl()
          Default constructor.
 
Method Summary
 RuleExecutionSet createRuleExecutionSet(java.io.InputStream ruleExecutionSetStream, java.util.Map properties)
          Creates a RuleExecutionSet implementation using a supplied input stream and additional Drools-specific properties.
 RuleExecutionSet createRuleExecutionSet(java.lang.Object ruleExecutionSetAst, java.util.Map properties)
          Creates a RuleExecutionSet implementation from a Drools-specific AST representation and Drools-specific properties.
 RuleExecutionSet createRuleExecutionSet(java.io.Reader ruleExecutionSetReader, java.util.Map properties)
          Creates a RuleExecutionSet implementation using a supplied character stream Reader and additional Drools-specific properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalRuleExecutionSetProviderImpl

public LocalRuleExecutionSetProviderImpl()
Default constructor.

Method Detail

createRuleExecutionSet

public RuleExecutionSet createRuleExecutionSet(java.io.InputStream ruleExecutionSetStream,
                                               java.util.Map properties)
                                        throws RuleExecutionSetCreateException
Creates a RuleExecutionSet implementation using a supplied input stream and additional Drools-specific properties. A Drools-specific rule execution set is read from the supplied InputStream. The method createRuleExecutionSet taking a Reader instance should be used if the source is a character stream and encoding conversion should be performed.

Throws:
RuleExecutionSetCreateException - on rule execution set creation error.
Parameters:
ruleExecutionSetStream - an input stream used to read the rule execution set.
properties - additional properties used to create the RuleExecutionSet implementation. May be null.
Returns:
The created RuleExecutionSet.

createRuleExecutionSet

public RuleExecutionSet createRuleExecutionSet(java.io.Reader ruleExecutionSetReader,
                                               java.util.Map properties)
                                        throws RuleExecutionSetCreateException
Creates a RuleExecutionSet implementation using a supplied character stream Reader and additional Drools-specific properties. A Drools-specific rule execution set is read from the supplied Reader.

Throws:
RuleExecutionSetCreateException - on rule execution set creation error.
Parameters:
ruleExecutionSetReader - a Reader used to read the rule execution set.
properties - additional properties used to create the RuleExecutionSet implementation. May be null.
Returns:
The created RuleExecutionSet.

createRuleExecutionSet

public RuleExecutionSet createRuleExecutionSet(java.lang.Object ruleExecutionSetAst,
                                               java.util.Map properties)
                                        throws RuleExecutionSetCreateException
Creates a RuleExecutionSet implementation from a Drools-specific AST representation and Drools-specific properties.

Throws:
RuleExecutionSetCreateException - on rule execution set creation error.
Parameters:
ruleExecutionSetAst - the vendor representation of a rule execution set
properties - additional properties used to create the RuleExecutionSet implementation. May be null.
Returns:
The created RuleExecutionSet.