public interface LifecycleAware
onStart()
will be invoked:
onStop()
will be invoked only if onStart()
was invoked, when dependencies are still available:
LifecycleAware
as a declared
interface. For transformerless plugins using the atlassian spring scanner, this can be done using the ExportAsService
annotation. For transformed plugins, use a <component>
with a public="true"
attribute and an
<interface>com.atlassian.sal.api.lifecycle.LifecycleAware</interface>
child element. For example:
<component key="my-cool-component" class="com.atlassian.stash.MyCoolComponent" public="true"> <interface>com.atlassian.sal.api.lifecycle.LifecycleAware</interface> </component>
void onStart()
void onStop()
Will be invoked if previously notified with onStart()
, before the plugin is disabled or framework is
shut down.
Copyright © 2015 Atlassian. All rights reserved.