public class OsgiConfigurationProvider extends Object implements PackageProvider, org.osgi.framework.BundleListener
| Constructor and Description |
|---|
OsgiConfigurationProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent bundleEvent)
Listens to bundle event to load/unload config
|
protected ActionContext |
createActionContext()
Creates a new empty ActionContext instance and binds it to the current thread.
|
void |
destroy() |
void |
init(Configuration configuration) |
protected void |
loadConfigFromBundle(org.osgi.framework.Bundle bundle)
Loads XML config as well as Convention config from a bundle
Limitation: Constants and Beans are ignored on XML config
|
void |
loadPackages() |
boolean |
needsReload() |
protected void |
onBundleStopped(org.osgi.framework.Bundle bundle)
This method is called when a bundle is stopped, so the config that is related to it is removed
|
void |
setBundleAccessor(BundleAccessor acc) |
void |
setFileManagerFactory(FileManagerFactory fmFactory) |
void |
setObjectFactory(ObjectFactory factory) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
setVelocityManager(VelocityManager mgr)
Deprecated.
since 6.4.0
|
void |
setVelocityManager(VelocityManagerInterface vmi) |
protected boolean |
shouldProcessBundle(org.osgi.framework.Bundle bundle)
Checks for "Struts2-Enabled" header in the bundle
|
public void init(Configuration configuration) throws ConfigurationException
init in interface PackageProviderConfigurationExceptionpublic void loadPackages()
throws ConfigurationException
loadPackages in interface PackageProviderConfigurationExceptionprotected ActionContext createActionContext()
protected void loadConfigFromBundle(org.osgi.framework.Bundle bundle)
bundle - the bundleprotected boolean shouldProcessBundle(org.osgi.framework.Bundle bundle)
bundle - the bundlepublic boolean needsReload()
needsReload in interface PackageProviderpublic void setObjectFactory(ObjectFactory factory)
public void setBundleAccessor(BundleAccessor acc)
public void setVelocityManager(VelocityManagerInterface vmi)
@Deprecated public void setVelocityManager(VelocityManager mgr)
public void setServletContext(javax.servlet.ServletContext servletContext)
public void setFileManagerFactory(FileManagerFactory fmFactory)
public void destroy()
public void bundleChanged(org.osgi.framework.BundleEvent bundleEvent)
bundleChanged in interface org.osgi.framework.BundleListenerbundleEvent - the bundle eventprotected void onBundleStopped(org.osgi.framework.Bundle bundle)
bundle - the bundle that stoppedCopyright © 2000–2025 Apache Software Foundation. All rights reserved.