Producer : Where is your payload? : Payload Pointer

This section is used to specify the point to get the Payload object.
The correlation Type is set to Invoked if ...
The correlation Type is set to Return if ...
The correlation Type is set to Position if ...
The field Getter Chain is used ...

package com.packagename;
public class ProducerClassName {

     private void exitPoint(CustomPayload payload, Stream outputStream) {
         outputStream.writeObject(payload);
     }

}

In the example above the method payload object 'CustomPayload' is at position 0 of method exitPoint.


Values to put in this section of the tool for the above example:
Correlation Type: Position
Position: 0 Getter Chain: this

package com.packagename;
public class ProducerClassName {

     private CustomPayload exitPoint() {
         return payload;
     }

}

In the example above the method payload object 'CustomPayload' is returned by method exitPoint.


Values to put in this section of the tool for the above example:
Correlation Type: Return
Getter Chain: this

package com.packagename;
public class ProducerClassName {

     private CustomPayload exitPoint() {
         return payload;
     }

}

In the example above the method payload object 'CustomPayload' is invoked by method exitPoint.


Values to put in this section of the tool for the above example:
Correlation Type: Invoke
Getter Chain: this