javax.rules.admin
Interface LocalRuleExecutionSetProvider


public interface LocalRuleExecutionSetProvider

The LocalRuleExecutionSetProvider interface defines RuleExecutionSet creation methods for defining RuleExecutionSets from local (non-serializable) resources.


Method Summary
 RuleExecutionSet createRuleExecutionSet(java.io.InputStream ruleExecutionSetStream, java.util.Map properties)
          Creates a RuleExecutionSet implementation using a supplied input stream and additional vendor-specific properties.
 RuleExecutionSet createRuleExecutionSet(java.lang.Object ruleExecutionSetAst, java.util.Map properties)
          Creates a RuleExecutionSet implementation from a vendor specific AST representation and vendor-specific properties.
 RuleExecutionSet createRuleExecutionSet(java.io.Reader ruleExecutionSetReader, java.util.Map properties)
          Creates a RuleExecutionSet implementation using a supplied character stream Reader and additional vendor-specific properties.
 

Method Detail

createRuleExecutionSet

public RuleExecutionSet createRuleExecutionSet(java.io.InputStream ruleExecutionSetStream,
                                               java.util.Map properties)
                                        throws RuleExecutionSetCreateException,
                                               java.io.IOException
Creates a RuleExecutionSet implementation using a supplied input stream and additional vendor-specific properties. A vendor-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.

Parameters:
ruleExecutionSetStream - an input stream used to read the rule execution set.
properties - additional properties used to create the RuleExecutionSet implementation. May be null.
Throws:
java.io.IOException - on input stream I/O error.
RuleExecutionSetCreateException - on rule execution set creation error.

createRuleExecutionSet

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

Parameters:
ruleExecutionSetReader - a Reader used to read the rule execution set.
properties - additional properties used to create the RuleExecutionSet implementation. May be null.
Throws:
java.io.IOException - on input stream I/O error.
RuleExecutionSetCreateException - on rule execution set creation error.

createRuleExecutionSet

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

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


Copyright © 2004 Java Community Process. All Rights Reserved.