org.drools.base
Class ReferenceOriginalGlobalExporter
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReferenceOriginalGlobalExporter
public ReferenceOriginalGlobalExporter()
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-2014 JBoss by Red Hat. All Rights Reserved.