]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.equinox/src/main/java/org/argeo/slc/osgi/OsgiBundle.java
Remote shutdown
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.equinox / src / main / java / org / argeo / slc / osgi / OsgiBundle.java
1 package org.argeo.slc.osgi;
2
3 import org.argeo.slc.build.Distribution;
4 import org.argeo.slc.core.deploy.ResourceDistribution;
5 import org.argeo.slc.deploy.DeploymentData;
6 import org.argeo.slc.deploy.Module;
7 import org.argeo.slc.deploy.TargetData;
8 import org.osgi.framework.Bundle;
9
10 public class OsgiBundle implements Module<ResourceDistribution> {
11 private String name;
12 private String version;
13 private Distribution distribution;
14
15 public OsgiBundle() {
16
17 }
18
19 public OsgiBundle(Bundle bundle) {
20 name = bundle.getSymbolicName();
21 version = bundle.getHeaders().get("Bundle-Version").toString();
22 }
23
24 public String getDeployedSystemId() {
25 return name + ":" + version;
26 }
27
28 public DeploymentData getDeploymentData() {
29 // TODO Auto-generated method stub
30 return null;
31 }
32
33 public Distribution getDistribution() {
34 return distribution;
35 }
36
37 public TargetData getTargetData() {
38 // TODO Auto-generated method stub
39 return null;
40 }
41
42 public String getName() {
43 return name;
44 }
45
46 public String getVersion() {
47 return version;
48 }
49
50 public void setName(String name) {
51 this.name = name;
52 }
53
54 public void setVersion(String version) {
55 this.version = version;
56 }
57
58 public void setDistribution(Distribution distribution) {
59 this.distribution = distribution;
60 }
61
62 }