1 package org
.argeo
.slc
.osgi
;
3 import org
.argeo
.slc
.core
.execution
.AbstractSpringExecutionModule
;
4 import org
.osgi
.framework
.BundleContext
;
5 import org
.springframework
.osgi
.context
.BundleContextAware
;
7 public class OsgiExecutionModule
extends AbstractSpringExecutionModule
implements
9 private BundleContext bundleContext
;
11 public String
getName() {
12 return bundleContext
.getBundle().getSymbolicName();
15 public String
getVersion() {
16 return bundleContext
.getBundle().getHeaders().get("Bundle-Version")
20 public void setBundleContext(BundleContext bundleContext
) {
21 this.bundleContext
= bundleContext
;