com.atlassian.plugin
Interface StateAware

All Known Subinterfaces:
WebFragmentModuleDescriptor, WebItemModuleDescriptor, WebSectionModuleDescriptor
All Known Implementing Classes:
AbstractWebFragmentModuleDescriptor, DefaultAbstractWebFragmentModuleDescriptor, DefaultWebItemModuleDescriptor, DefaultWebSectionModuleDescriptor, ServletModuleDescriptor

public interface StateAware

Makes a plugin module aware of its activation state. Modules should implement this interface if they want to be notified when they are enabled and disabled.


Method Summary
 void disabled()
          Called by the plugin manager when the module is deactivated.
 void enabled()
          Called by the plugin manager when the module is activated.
 

Method Detail

enabled

void enabled()
Called by the plugin manager when the module is activated. Modules that are active when the plugin manager is initialised will have this method called at that time.


disabled

void disabled()
Called by the plugin manager when the module is deactivated. This method will only be called if the plugin is deactivated while the application is running: stopping the server will not cause this method to be called on any plugins.



Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.