@Retention(value=RUNTIME) @Target(value=METHOD) public @interface AppFinalizer
An application's finalizer method is invoked by the server runtime for the application to shutdown before the application's main class is unloaded by the server runtime.
@AppHAPolicy(HAPolicy.StateReplication)
public class DQPerfDriverApp {
@AppFinalizer
final public void onFinalize() {
System.out.println("Goodbyte");
}
}
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.