Package com.atlassian.confluence.plugin
Class PluginFrameworkContextListener
- java.lang.Object
-
- 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
Constructors Constructor Description PluginFrameworkContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
void
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
-