org.dentaku.services.rules
Class DroolsJSR94RuleProcessor

java.lang.Object
  extended byorg.dentaku.services.rules.DroolsJSR94RuleProcessor
All Implemented Interfaces:
org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, JSR94RuleProcessor

public class DroolsJSR94RuleProcessor
extends java.lang.Object
implements JSR94RuleProcessor, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

Implementation of a JSR-94 Rules processor with Drools


Field Summary
static java.lang.String RULE_SERVICE_PROVIDER
          Drools RuleServiceProvider URI.
protected  javax.rules.RuleServiceProvider ruleServiceProvider
           
 
Fields inherited from interface org.dentaku.services.rules.JSR94RuleProcessor
ROLE
 
Constructor Summary
DroolsJSR94RuleProcessor()
           
 
Method Summary
protected  java.net.URL getResource(java.lang.String res)
          Get the requested resource from the ClassLoader.
protected  java.io.InputStream getResourceAsStream(java.lang.String res)
          Get the requested resource from the ClassLoader.
 javax.rules.StatefulRuleSession getStatefulRuleSession()
           
 javax.rules.StatelessRuleSession getStatelessRuleSession()
           
 void initialize()
           
 void releaseRuleSession(javax.rules.RuleSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RULE_SERVICE_PROVIDER

public static final java.lang.String RULE_SERVICE_PROVIDER
Drools RuleServiceProvider URI.

See Also:
Constant Field Values

ruleServiceProvider

protected javax.rules.RuleServiceProvider ruleServiceProvider
Constructor Detail

DroolsJSR94RuleProcessor

public DroolsJSR94RuleProcessor()
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
java.lang.Exception

getStatefulRuleSession

public javax.rules.StatefulRuleSession getStatefulRuleSession()
                                                       throws java.lang.Exception
Specified by:
getStatefulRuleSession in interface JSR94RuleProcessor
Throws:
java.lang.Exception

getStatelessRuleSession

public javax.rules.StatelessRuleSession getStatelessRuleSession()
                                                         throws java.lang.Exception
Specified by:
getStatelessRuleSession in interface JSR94RuleProcessor
Throws:
java.lang.Exception

releaseRuleSession

public void releaseRuleSession(javax.rules.RuleSession session)
                        throws java.lang.Exception
Specified by:
releaseRuleSession in interface JSR94RuleProcessor
Throws:
java.lang.Exception

getResource

protected java.net.URL getResource(java.lang.String res)
Get the requested resource from the ClassLoader.

See Also:
ClassLoader.getResource(java.lang.String)

getResourceAsStream

protected java.io.InputStream getResourceAsStream(java.lang.String res)
Get the requested resource from the ClassLoader.

See Also:
ClassLoader.getResourceAsStream(java.lang.String)


Copyright © -2004 . All Rights Reserved.