org.jboss.seam.drools
Class ManagedWorkingMemory

java.lang.Object
  extended by org.jboss.seam.drools.ManagedWorkingMemory
All Implemented Interfaces:
Serializable, Mutable

@Scope(value=CONVERSATION)
@BypassInterceptors
public class ManagedWorkingMemory
extends Object
implements Mutable, Serializable

A conversation-scoped Drools WorkingMemory for a named RuleBase

Author:
Gavin King, Tihomir Surdilovic
See Also:
Serialized Form

Constructor Summary
ManagedWorkingMemory()
           
 
Method Summary
 boolean clearDirty()
          Get and clear the dirty flag.
protected  org.drools.spi.GlobalResolver createGlobalResolver(org.drools.spi.GlobalResolver delegate)
           
 void destroy()
           
 String[] getEventListeners()
           
 Expressions.ValueExpression<org.drools.RuleBase> getRuleBase()
           
protected  org.drools.RuleBase getRuleBaseFromValueBinding()
           
 String getRuleBaseName()
          Deprecated.  
 org.drools.StatefulSession getStatefulSession()
           
 void setEventListeners(String[] eventListeners)
           
 void setRuleBase(Expressions.ValueExpression<org.drools.RuleBase> ruleBase)
           
 void setRuleBaseName(String ruleBaseName)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedWorkingMemory

public ManagedWorkingMemory()
Method Detail

clearDirty

public boolean clearDirty()
Description copied from interface: Mutable
Get and clear the dirty flag.

Specified by:
clearDirty in interface Mutable
Returns:
true if the instance is dirty and requires replication

getRuleBaseName

public String getRuleBaseName()
Deprecated. 

The name of a Seam context variable holding an instance of org.drools.RuleBase

Returns:
a context variable name

setRuleBaseName

public void setRuleBaseName(String ruleBaseName)
Deprecated. 

The name of a Seam context variable holding an instance of org.drools.RuleBase

Parameters:
ruleBaseName - a context variable name

getStatefulSession

@Unwrap
public org.drools.StatefulSession getStatefulSession()

getRuleBaseFromValueBinding

protected org.drools.RuleBase getRuleBaseFromValueBinding()

createGlobalResolver

protected org.drools.spi.GlobalResolver createGlobalResolver(org.drools.spi.GlobalResolver delegate)

destroy

@Destroy
public void destroy()

getRuleBase

public Expressions.ValueExpression<org.drools.RuleBase> getRuleBase()

setRuleBase

public void setRuleBase(Expressions.ValueExpression<org.drools.RuleBase> ruleBase)

getEventListeners

public String[] getEventListeners()

setEventListeners

public void setEventListeners(String[] eventListeners)


Copyright © 2011 Seam Framework. All Rights Reserved.