public class FelixOsgiHost extends BaseOsgiHost
struts.osgi.clearBundleCache: Defaults to "true" delete installed bundles when the comntainer starts
struts.osgi.logLevel: Defaults to "1". Felix log level. 1 = error, 2 = warning, 3 = information, and 4 = debug
struts.osgi.runLevel: Defaults to "3". Run level to start the container.
Modifier and Type | Field and Description |
---|---|
protected org.apache.felix.framework.Felix |
felix |
servletContext, versionPattern
OSGI_BUNDLE_CONTEXT, OSGI_HEADER_STRUTS_ENABLED
Constructor and Description |
---|
FelixOsgiHost() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSpringOSGiSupport() |
void |
destroy() |
Map<String,org.osgi.framework.Bundle> |
getActiveBundles() |
org.osgi.framework.BundleContext |
getBundleContext() |
Map<String,org.osgi.framework.Bundle> |
getBundles()
This bundle map will not change, but the status of the bundles can change over time.
|
void |
init(javax.servlet.ServletContext servletContext) |
protected void |
startFelix() |
addAutoStartBundles, addExportedPackages, getBundlesInDir, getJarUrl, getProperties, getRunLevelDirs, getServletContextParam, getVersion, getVersionFromString, replaceSystemPackages
protected void startFelix()
public void init(javax.servlet.ServletContext servletContext)
init
in interface OsgiHost
init
in class BaseOsgiHost
public Map<String,org.osgi.framework.Bundle> getBundles()
BaseOsgiHost
getBundles
in interface OsgiHost
getBundles
in class BaseOsgiHost
public Map<String,org.osgi.framework.Bundle> getActiveBundles()
getActiveBundles
in interface OsgiHost
getActiveBundles
in class BaseOsgiHost
public org.osgi.framework.BundleContext getBundleContext()
getBundleContext
in interface OsgiHost
getBundleContext
in class BaseOsgiHost
public void destroy() throws Exception
destroy
in interface OsgiHost
destroy
in class BaseOsgiHost
Exception
protected void addSpringOSGiSupport()
addSpringOSGiSupport
in class BaseOsgiHost
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.