Annotation Interface Load


@Target(METHOD) @Retention(RUNTIME) public @interface Load
Annotation that marks a method to be called when a plugin is loaded.

Intended for use by plugin developers to mark a method of an extension implementation to be called during plugin load 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.
Please refer to the Go Plugin documentation for more details.
See Also: