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, versionPatternOSGI_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, replaceSystemPackagesprotected void startFelix()
public void init(javax.servlet.ServletContext servletContext)
init in interface OsgiHostinit in class BaseOsgiHostpublic Map<String,org.osgi.framework.Bundle> getBundles()
BaseOsgiHostgetBundles in interface OsgiHostgetBundles in class BaseOsgiHostpublic Map<String,org.osgi.framework.Bundle> getActiveBundles()
getActiveBundles in interface OsgiHostgetActiveBundles in class BaseOsgiHostpublic org.osgi.framework.BundleContext getBundleContext()
getBundleContext in interface OsgiHostgetBundleContext in class BaseOsgiHostpublic void destroy()
throws Exception
destroy in interface OsgiHostdestroy in class BaseOsgiHostExceptionprotected void addSpringOSGiSupport()
addSpringOSGiSupport in class BaseOsgiHostCopyright © 2000–2017 Apache Software Foundation. All rights reserved.