org.apache.struts2.osgi.host

## Interface OsgiHost

- All Known Implementing Classes:
    BaseOsgiHost, FelixOsgiHost, GlassfishOSGiHost

      public interface OsgiHost

  Implementations of this class start an OSGi container. They must also add the BundleContext to the ServletContext under the key OsgiHost.OSGI_BUNDLE_CONTEXT;

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `OSGI_BUNDLE_CONTEXT`
    `static String` | `OSGI_HEADER_STRUTS_ENABLED`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `destroy()`
    `Map<String,org.osgi.framework.Bundle>` | `getActiveBundles()`
    `org.osgi.framework.BundleContext` | `getBundleContext()`
    `Map<String,org.osgi.framework.Bundle>` | `getBundles()`
    `void` | `init(javax.servlet.ServletContext servletContext)`

- - ### Field Detail

    - #### OSGI_BUNDLE_CONTEXT

          static final String OSGI_BUNDLE_CONTEXT

      See Also:
        Constant Field Values

    - #### OSGI_HEADER_STRUTS_ENABLED

          static final String OSGI_HEADER_STRUTS_ENABLED

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### destroy

          void destroy()
                throws Exception

      Throws:
        `Exception`

    - #### init

          void init(javax.servlet.ServletContext servletContext)

    - #### getBundles

          Map<String,org.osgi.framework.Bundle> getBundles()

    - #### getActiveBundles

          Map<String,org.osgi.framework.Bundle> getActiveBundles()

    - #### getBundleContext

          org.osgi.framework.BundleContext getBundleContext()

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