Target: Method of a POJO annotated with @StageDefinition.
Description: Marks the annotated method as the stage's termination method. This method always runs after stage execution.
Remarks: There are several signatures allowed for the annotated method. See the examples for a comprehensive description.
JavaDoc: Click here
Attributes: N/A
Examples:
public class aStage
// Void return, no arguments
@Finalize
void finalizeMethod() {
// do something...
}
}
public class aStage
// Void return, IDIFContext argument
@Finalize
void finalizeMethod(IDIFContext ctx) {
// do something...
}
}
public class aStage
// boolean return, IDIFContext argument
@Finalize
boolean finalizeMethod(IDIFContext ctx) {
return true;
}
}
public class aStage
// boolean return, no arguments
@Finalize
boolean finalizeMethod() {
return true;
}
}
See also: