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()
ModularDeployedSystem
listModules
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()
DeployedSystem
getDeployedSystemId
in interface DeployedSystem
public DeploymentData getDeploymentData()
DeployedSystem
getDeploymentData
in interface DeployedSystem
public Distribution getDistribution()
DeployedSystem
getDistribution
in interface DeployedSystem
public TargetData getTargetData()
DeployedSystem
getTargetData
in interface DeployedSystem
public void setBundleContext(BundleContext bundleContext)
setBundleContext
in interface org.eclipse.gemini.blueprint.context.BundleContextAware
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
Copyright © 2007–2020. All rights reserved.