org.drools.base
Class CopyIdentifiersGlobalExporter

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

public class CopyIdentifiersGlobalExporter
extends Object
implements GlobalExporter

Creates a new GlobalResolver consisting of just the identifiers specified in the String[]. If the String[] is null, or the default constructor is used, then all globals defined in the RuleBase will be copied.

See Also:
Serialized Form

Constructor Summary
CopyIdentifiersGlobalExporter()
          All identifiers will be copied
CopyIdentifiersGlobalExporter(String[] identifiers)
          Specified identifiers will be copied
 
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

CopyIdentifiersGlobalExporter

public CopyIdentifiersGlobalExporter()
All identifiers will be copied


CopyIdentifiersGlobalExporter

public CopyIdentifiersGlobalExporter(String[] identifiers)
Specified identifiers will be copied

Parameters:
identifiers -
Method Detail

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

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


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