Package org.drools.core.base
Class ReferenceOriginalGlobalExporter
- java.lang.Object
-
- org.drools.core.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
Constructors Constructor Description ReferenceOriginalGlobalExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlobalResolverexport(WorkingMemory workingMemory)This method is called internally by the StatelessSession, which will provide the WorkingMemory.voidreadExternal(ObjectInput in)voidwriteExternal(ObjectOutput out)
-
-
-
Method Detail
-
export
public GlobalResolver export(WorkingMemory workingMemory)
Description copied from interface:GlobalExporterThis method is called internally by the StatelessSession, which will provide the WorkingMemory. The returned GlobalResolver is used by the StatefulSessionResult- Specified by:
exportin interfaceGlobalExporter- Returns:
- The GlobalResolver instance as used by the StatefulSessionResult
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
-