Is it possible to catch uninstalling plugin event?

Pavel_Kryshtop February 7, 2013

My plugin does some Jira configuration before installation.
I want to save my settings if plugin will be disabled.
And I want to clear my settings if plugin will be removed.

Example below show how to catch both disable and remove plugin events.

public class Uninstaller implements DisposableBean {
    /** Called when the plugin has been disabled or removed. */
    @Override
    public void destroy() throws Exception {}
}

I want to catch only remove event. Is it possible?

1 answer

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 7, 2013

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events