]> git.argeo.org Git - gpl/argeo-slc.git/blob - execution/OsgiExecutionModule.java
Prepare next development cycle
[gpl/argeo-slc.git] / execution / OsgiExecutionModule.java
1 package org.argeo.slc.execution;
2
3 import org.osgi.framework.BundleContext;
4 import org.springframework.osgi.context.BundleContextAware;
5
6 public class OsgiExecutionModule extends AbstractSpringExecutionModule implements
7 BundleContextAware {
8 private BundleContext bundleContext;
9
10 public String getName() {
11 return bundleContext.getBundle().getSymbolicName();
12 }
13
14 public String getVersion() {
15 return bundleContext.getBundle().getHeaders().get("Bundle-Version")
16 .toString();
17 }
18
19 public void setBundleContext(BundleContext bundleContext) {
20 this.bundleContext = bundleContext;
21 }
22
23 }