Annotation Interface UnLoad
Annotation that marks a method to be called when a plugin is unloaded.
Intended for use by plugin developers to mark a method of an extension implementation to be called during plugin unload time.
The semantics of the method marked with this annotation is as follows.- There should atmost one method in the implementation that should have this annotation.
- The method should be public, non-static.
- The method should take only one parameter-
PluginContext. Return values will be ignored. - This annotation will not be inherited along with the method.
Load annotation. But the callback to this method is only done during the plugin unload time.
In summary, semantics checks are done at the plugin load and invocation done during the plugin unload.
Please refer to the Go Plugin documentation for more details.- See Also: