com.haley.haleyrules.jsr94
Class RuleExecutionSetProviderImpl

java.lang.Object
  |
  +--com.haley.haleyrules.jsr94.HaleyRuleExecutionSetProvider
        |
        +--com.haley.haleyrules.jsr94.RuleExecutionSetProviderImpl
All Implemented Interfaces:
javax.rules.admin.RuleExecutionSetProvider

public class RuleExecutionSetProviderImpl
extends com.haley.haleyrules.jsr94.HaleyRuleExecutionSetProvider
implements javax.rules.admin.RuleExecutionSetProvider

This class implements the RuleExecutionSetProvider interface. 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
 javax.rules.admin.RuleExecutionSet createRuleExecutionSet(org.w3c.dom.Element docElement, java.util.Map properties)
          Creates a RuleExecutionSet implementation from an XML Document and additional vendor-specific properties.
 javax.rules.admin.RuleExecutionSet createRuleExecutionSet(java.io.Serializable ast, java.util.Map properties)
          Creates a RuleExecutionSet implementation from a vendor specific AST representation and vendor-specific properties
 javax.rules.admin.RuleExecutionSet createRuleExecutionSet(java.lang.String uri, java.util.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
 

Method Detail

createRuleExecutionSet

public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(org.w3c.dom.Element docElement,
                                                                 java.util.Map properties)
                                                          throws javax.rules.admin.RuleExecutionSetCreateException
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 element
Specified by:
createRuleExecutionSet in interface javax.rules.admin.RuleExecutionSetProvider
Parameters:
docElement - the XML Document element that is the source of the rule execution set
properties - additonal properties used to create the RuleExecution implementation
Returns:
RuleExecutionSet
Throws:
javax.rules.admin.RuleExecutionSetCreateException - on rule execution set creation error

createRuleExecutionSet

public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(java.io.Serializable ast,
                                                                 java.util.Map properties)
                                                          throws javax.rules.admin.RuleExecutionSetCreateException
Creates a RuleExecutionSet implementation from a vendor specific AST representation and vendor-specific properties
Specified by:
createRuleExecutionSet in interface javax.rules.admin.RuleExecutionSetProvider
Parameters:
ast - the vendor representation of a rule execution set
properties - additional properties used to create the RuleExecutionSet implementation
Returns:
RuleExecutionSet
Throws:
javax.rules.admin.RuleExecutionSetCreateException - on rule execution set creation error

createRuleExecutionSet

public javax.rules.admin.RuleExecutionSet createRuleExecutionSet(java.lang.String uri,
                                                                 java.util.Map properties)
                                                          throws javax.rules.admin.RuleExecutionSetCreateException

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

For the HaleyRules engine, the URI should be a file name. The supported file types are the deployment file with the extension .xml, the binary file with the extension .bin, and the HRML file with the extension .hrml.

Specified by:
createRuleExecutionSet in interface javax.rules.admin.RuleExecutionSetProvider
Parameters:
uri - the URI to load the rule execution set from
properties - additional properties used to create the RuleExecutionSet implementation
Returns:
RuleExecutionSet
Throws:
javax.rules.admin.RuleExecutionSetCreateException - on rule execution set creation error


Copyright © 2005-2006 Haley Systems, Inc. All Rights Reserved.