org.drools.base
Class ReferenceOriginalGlobalExporter

java.lang.Object
  extended by org.drools.base.ReferenceOriginalGlobalExporter
All Implemented Interfaces:
Externalizable, Serializable, GlobalExporter

public class ReferenceOriginalGlobalExporter
extends Object
implements GlobalExporter

This implementation does nothing other than pass by reference the original GlobalResolver as used in the StatelessSession. Care should be taken if you use this strategy, as later executes may change those globals. The GlobalResolver of the StatelessSession may also not be serialisable friendly.

See Also:
Serialized Form

Constructor Summary
ReferenceOriginalGlobalExporter()
           
 
Method Summary
 GlobalResolver export(WorkingMemory workingMemory)
          This method is called internally by the StatelessSession, which will provide the WorkingMemory.
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceOriginalGlobalExporter

public ReferenceOriginalGlobalExporter()
Method Detail

export

public GlobalResolver export(WorkingMemory workingMemory)
Description copied from interface: GlobalExporter
This method is called internally by the StatelessSession, which will provide the WorkingMemory. The returned GlobalResolver is used by the StatefulSessionResult

Specified by:
export in interface GlobalExporter
Returns:
The GlobalResolver instance as used by the StatefulSessionResult

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.