com.atlassian.confluence.plugin.dev
Class DeprecatedPluginModuleListener

java.lang.Object
  extended by com.atlassian.confluence.plugin.dev.DeprecatedPluginModuleListener
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class DeprecatedPluginModuleListener
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

Listens to PluginModuleEnabledEvents and logs a warning if the plugin module is a deprecated class, or subclasses or implements a deprecated type.


Constructor Summary
DeprecatedPluginModuleListener(com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeprecatedPluginModuleListener

public DeprecatedPluginModuleListener(com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

pluginModuleEnabled

@EventListener
public void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2003–2015 Atlassian. All rights reserved.