Annotation Interface PreDestroy


@Retention(RUNTIME) @Target(METHOD) public @interface PreDestroy
Marks a method to be executed when the plugin is disabled.

Called by ServiceRegistry.shutdown() on singleton services, beans, registered instances and objects created with ServiceRegistry.create(Class), in reverse creation order. The method must have no parameters.