org.apache.struts2.osgi

## Class StrutsOsgiListener

- java.lang.Object
- - org.apache.struts2.osgi.StrutsOsgiListener

- All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

      public class StrutsOsgiListener
      extends Object
      implements javax.servlet.ServletContextListener

  ServletContextListener that starts OSGi host

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `OSGI_HOST`
    `static String` | `PLATFORM_KEY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `StrutsOsgiListener()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `contextDestroyed(javax.servlet.ServletContextEvent sce)`
    `void` | `contextInitialized(javax.servlet.ServletContextEvent sce)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### OSGI_HOST

          public static final String OSGI_HOST

      See Also:
        Constant Field Values

    - #### PLATFORM_KEY

          public static final String PLATFORM_KEY

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### StrutsOsgiListener

          public StrutsOsgiListener()

  - ### Method Detail

    - #### contextInitialized

          public void contextInitialized(javax.servlet.ServletContextEvent sce)

      Specified by:
        `contextInitialized` in interface `javax.servlet.ServletContextListener`

    - #### contextDestroyed

          public void contextDestroyed(javax.servlet.ServletContextEvent sce)

      Specified by:
        `contextDestroyed` in interface `javax.servlet.ServletContextListener`

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.