|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.osgi.host.BaseOsgiHost
public abstract class BaseOsgiHost
A base OsgiHost implementation
Field Summary | |
---|---|
protected javax.servlet.ServletContext |
servletContext
|
protected static Pattern |
versionPattern
|
Fields inherited from interface org.apache.struts2.osgi.host.OsgiHost |
---|
OSGI_BUNDLE_CONTEXT, OSGI_HEADER_STRUTS_ENABLED |
Constructor Summary | |
---|---|
BaseOsgiHost()
|
Method Summary | |
---|---|
protected void |
addAutoStartBundles(Properties configProps)
|
protected void |
addExportedPackages(Properties strutsConfigProps,
Properties configProps)
|
protected abstract void |
addSpringOSGiSupport()
|
abstract void |
destroy()
|
abstract Map<String,org.osgi.framework.Bundle> |
getActiveBundles()
|
abstract org.osgi.framework.BundleContext |
getBundleContext()
|
abstract Map<String,org.osgi.framework.Bundle> |
getBundles()
This bundle map will not change, but the status of the bundles can change over time. |
protected List<String> |
getBundlesInDir(String dir)
|
protected String |
getJarUrl(Class clazz)
|
protected Properties |
getProperties(String fileName)
|
protected Map<String,String> |
getRunLevelDirs(String dir)
Return a list of directories under a directory whose name is a number |
protected String |
getServletContextParam(String paramName,
String defaultValue)
Gets a param from the ServletContext, returning the default value if the param is not set |
protected String |
getVersion(URL url)
Gets the version used to export the packages. |
protected String |
getVersionFromString(String str)
Extracts numbers followed by "." or "-" from the string and joins them with "." |
abstract void |
init(javax.servlet.ServletContext servletContext)
|
protected void |
replaceSystemPackages(Properties properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Pattern versionPattern
protected javax.servlet.ServletContext servletContext
Constructor Detail |
---|
public BaseOsgiHost()
Method Detail |
---|
public abstract void init(javax.servlet.ServletContext servletContext)
init
in interface OsgiHost
public abstract void destroy() throws Exception
destroy
in interface OsgiHost
Exception
public abstract Map<String,org.osgi.framework.Bundle> getBundles()
getBundles
in interface OsgiHost
public abstract Map<String,org.osgi.framework.Bundle> getActiveBundles()
getActiveBundles
in interface OsgiHost
public abstract org.osgi.framework.BundleContext getBundleContext()
getBundleContext
in interface OsgiHost
protected abstract void addSpringOSGiSupport()
protected String getServletContextParam(String paramName, String defaultValue)
paramName
- the name of the param to get from the ServletContextdefaultValue
- value to return if the param is not set
protected void addAutoStartBundles(Properties configProps)
protected Map<String,String> getRunLevelDirs(String dir)
protected List<String> getBundlesInDir(String dir)
protected String getJarUrl(Class clazz)
protected void replaceSystemPackages(Properties properties)
protected void addExportedPackages(Properties strutsConfigProps, Properties configProps)
protected String getVersion(URL url)
protected String getVersionFromString(String str)
protected Properties getProperties(String fileName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |