You are not logged in. Click here to log in.

Application Lifecycle Management

Search In Project

Search inClear

@Finalize #17049/HEAD / v10
Tags:  not added yet

@Finalize

This method provides the notion of a final cleanup after model execution (e.g. Closing a DB connection). Usually the @Finalize method and the @Initialize method are both present. The @Finalize method gets called after the final @Execute and the termination of the model.

FORTRAN modelers using OMS often will forego use of this annotation as the process is handled in the model simulation file with DSL, and OMS is triggered to the method behind the scenes.

Synopsis

@Finalize

Type

Execution annotation

Scope

Method

Example

Java example:

public class Component {
    @Finalize
    public void cleanup() {
    // execute code here
    }
}