org.jboss.reliance.drools.core
Class RuleBaseBean
java.lang.Object
org.jboss.reliance.drools.core.RuleBaseBean
- All Implemented Interfaces:
- Serializable, org.drools.RuleBase
public class RuleBaseBean
- extends Object
- implements org.drools.RuleBase
RuleBase bean delegate.
- Author:
- Ales Justin
- See Also:
- Serialized Form
|
Field Summary |
protected org.jboss.logging.Logger |
log
|
| Fields inherited from interface org.drools.RuleBase |
RETEOO |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected org.jboss.logging.Logger log
RuleBaseBean
public RuleBaseBean(String name)
setConfiguration
public void setConfiguration(org.drools.RuleBaseConfiguration configuration)
- Set the configuration.
- Parameters:
configuration - the configuration
create
public void create()
throws Exception
- Throws:
Exception
destroy
public void destroy()
matchPackage
protected boolean matchPackage(PackageWrapper pw)
- Does name match wrapper's name.
- Parameters:
pw - package wrapper
- Returns:
- true if name matches
addPackage
public void addPackage(PackageWrapper pckg)
throws Exception
- Throws:
Exception
removePackage
public void removePackage(PackageWrapper pckg)
newStatelessSession
public org.drools.StatelessSession newStatelessSession()
- Specified by:
newStatelessSession in interface org.drools.RuleBase
newStatefulSession
public org.drools.StatefulSession newStatefulSession()
- Specified by:
newStatefulSession in interface org.drools.RuleBase
newStatefulSession
public org.drools.StatefulSession newStatefulSession(boolean keepReference)
- Specified by:
newStatefulSession in interface org.drools.RuleBase
newStatefulSession
public org.drools.StatefulSession newStatefulSession(InputStream inputStream)
throws IOException,
ClassNotFoundException
- Specified by:
newStatefulSession in interface org.drools.RuleBase
- Throws:
IOException
ClassNotFoundException
newStatefulSession
public org.drools.StatefulSession newStatefulSession(InputStream inputStream,
boolean b)
throws IOException,
ClassNotFoundException
- Specified by:
newStatefulSession in interface org.drools.RuleBase
- Throws:
IOException
ClassNotFoundException
getPackages
public org.drools.rule.Package[] getPackages()
- Specified by:
getPackages in interface org.drools.RuleBase
getPackage
public org.drools.rule.Package getPackage(String name)
- Specified by:
getPackage in interface org.drools.RuleBase
addPackage
public void addPackage(org.drools.rule.Package pckg)
throws Exception
- Specified by:
addPackage in interface org.drools.RuleBase
- Throws:
Exception
removePackage
public void removePackage(String name)
- Specified by:
removePackage in interface org.drools.RuleBase
removeRule
public void removeRule(String name,
String ruleName)
- Specified by:
removeRule in interface org.drools.RuleBase
removeFunction
public void removeFunction(String packageName,
String functionName)
- Specified by:
removeFunction in interface org.drools.RuleBase
removeProcess
public void removeProcess(String id)
- Specified by:
removeProcess in interface org.drools.RuleBase
getStatefulSessions
public org.drools.StatefulSession[] getStatefulSessions()
- Specified by:
getStatefulSessions in interface org.drools.RuleBase
Copyright © 2008 JBoss Inc.. All Rights Reserved.