Am developing a plugin, which add new bulk operations: its made via PluginEnabledListener which make more or less something like this to register: ComponentAccessor.getBulkOperationManager().addProgressAwareBulkOperation(BulkAssignOperation.NAME_KEY, BulkAssignOperation.class);
The question is: How to unregister/delete operation, when plugin is uninstalled/disabled. What to write in PluginDisabledListener?
Depending on what you have in mind, you might want to wait for any/all of the Spring stated, Plugin stated, and LifecycleAware started events before registering, and to unregister upon receipt of any of the counterparts to those events.