com.atlassian.confluence.plugin
Class PluginFrameworkContextListener

java.lang.Object
  extended by com.atlassian.confluence.plugin.PluginFrameworkContextListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class PluginFrameworkContextListener
extends Object
implements javax.servlet.ServletContextListener

Starts the plugin framework when the application starts and shuts it down when it finishes. The framework will only be started if a database connection is available and there are no upgrade errors.

Should always be found after the upgrade listener in web.xml, and before the lifecycle plugin listener.

During setup, the plugin framework is not started here. In that case, its initialisation is triggered by an event published when the database is first configured: DatabaseConfiguredEvent.

Since:
4.0

Constructor Summary
PluginFrameworkContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
           
 void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginFrameworkContextListener

public PluginFrameworkContextListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener


Copyright © 2003–2015 Atlassian. All rights reserved.