public class OsgiRuntime extends java.lang.Object implements org.eclipse.gemini.blueprint.context.BundleContextAware, org.springframework.context.ResourceLoaderAware, DynamicRuntime<OsgiBundle>
| Constructor and Description |
|---|
OsgiRuntime() |
| Modifier and Type | Method and Description |
|---|---|
protected Bundle |
findBundle(NameVersion nameVersion) |
java.lang.String |
getDeployedSystemId()
Unique ID for this system instance.
|
DeploymentData |
getDeploymentData()
Data required to initialize the instance (e.g.
|
Distribution |
getDistribution()
Underlying packages
|
TargetData |
getTargetData()
Resources required by the system (ports, disk location, etc.)
|
OsgiBundle |
installModule(Distribution distribution) |
java.util.List<OsgiBundle> |
listModules()
List the underlying deployed modules (in real time)
|
void |
setBundleContext(BundleContext bundleContext) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
void |
shutdown() |
void |
startModule(NameVersion nameVersion) |
void |
uninstallModule(NameVersion nameVersion) |
void |
updateModule(NameVersion nameVersion) |
public java.util.List<OsgiBundle> listModules()
ModularDeployedSystemlistModules in interface ModularDeployedSystem<OsgiBundle>public OsgiBundle installModule(Distribution distribution)
installModule in interface DynamicRuntime<OsgiBundle>public void updateModule(NameVersion nameVersion)
updateModule in interface DynamicRuntime<OsgiBundle>public void uninstallModule(NameVersion nameVersion)
uninstallModule in interface DynamicRuntime<OsgiBundle>public void startModule(NameVersion nameVersion)
startModule in interface DynamicRuntime<OsgiBundle>protected Bundle findBundle(NameVersion nameVersion)
public void shutdown()
shutdown in interface DynamicRuntime<OsgiBundle>public java.lang.String getDeployedSystemId()
DeployedSystemgetDeployedSystemId in interface DeployedSystempublic DeploymentData getDeploymentData()
DeployedSystemgetDeploymentData in interface DeployedSystempublic Distribution getDistribution()
DeployedSystemgetDistribution in interface DeployedSystempublic TargetData getTargetData()
DeployedSystemgetTargetData in interface DeployedSystempublic void setBundleContext(BundleContext bundleContext)
setBundleContext in interface org.eclipse.gemini.blueprint.context.BundleContextAwarepublic void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwareCopyright © 2007–2020. All rights reserved.