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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent sce) voidcontextInitialized(jakarta.servlet.ServletContextEvent sce) voidstart(org.osgi.framework.BundleContext context) voidstop(org.osgi.framework.BundleContext context)
-
Constructor Details
-
WebAppContextListener
public WebAppContextListener()
-
-
Method Details
-
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
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-