Class WebAppContextListener
- java.lang.Object
-
- org.glassfish.jersey.examples.osgi.helloworld.WebAppContextListener
-
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener,org.osgi.framework.BundleActivator
public class WebAppContextListener extends Object implements org.osgi.framework.BundleActivator, jakarta.servlet.ServletContextListener
This is to make sure we signal the application has been deployed/un-deployed via the OSGi EventAdmin service.- Author:
- Jakub Podlesak
-
-
Constructor Summary
Constructors Constructor Description WebAppContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextDestroyed(jakarta.servlet.ServletContextEvent sce)voidcontextInitialized(jakarta.servlet.ServletContextEvent sce)voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
- Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-
start
public void start(org.osgi.framework.BundleContext context) throws Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
-