javax.rules.admin
Interface RuleExecutionSetProvider


public interface RuleExecutionSetProvider

The RuleExecutionSetProvider interface defines RuleExecutionSet creation methods for defining RuleExecutionSets from potentially serializable resources. These methods all take Serializable instances and this class can be implemented using an RMI stub to a remote object.


Method Summary
 RuleExecutionSet createRuleExecutionSet(org.w3c.dom.Element ruleExecutionSetElement, java.util.Map properties)
          Creates a RuleExecutionSet implementation from an XML Document and additional vendor-specific properties.
 RuleExecutionSet createRuleExecutionSet(java.io.Serializable ruleExecutionSetAst, java.util.Map properties)
          Creates a RuleExecutionSet implementation from a vendor specific AST representation and vendor-specific properties.
 RuleExecutionSet createRuleExecutionSet(java.lang.String ruleExecutionSetUri, java.util.Map properties)
          Creates a RuleExecutionSet implementation from a URI.
 

Method Detail

createRuleExecutionSet

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

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.
Throws:
RuleExecutionSetCreateException - on rule execution set creation error.
java.rmi.RemoteException

createRuleExecutionSet

public RuleExecutionSet createRuleExecutionSet(java.io.Serializable ruleExecutionSetAst,
                                               java.util.Map properties)
                                        throws RuleExecutionSetCreateException,
                                               java.rmi.RemoteException
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.
java.rmi.RemoteException

createRuleExecutionSet

public RuleExecutionSet createRuleExecutionSet(java.lang.String ruleExecutionSetUri,
                                               java.util.Map properties)
                                        throws RuleExecutionSetCreateException,
                                               java.io.IOException,
                                               java.rmi.RemoteException
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 vendor specific datasource.

Parameters:
ruleExecutionSetUri - the URI to load the rule execution set from
properties - additional properties used to create the RuleExecutionSet implementation. May be null.
Throws:
RuleExecutionSetCreateException - on rule execution set creation error.
java.io.IOException - if an I/O error occurs while accessing the URI
java.rmi.RemoteException


Copyright © 2004 Java Community Process. All Rights Reserved.