1 package org
.argeo
.slc
.osgi
;
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
;
10 public class OsgiBundle
implements Module
<ResourceDistribution
> {
12 private String version
;
13 private Distribution distribution
;
19 public OsgiBundle(Bundle bundle
) {
20 name
= bundle
.getSymbolicName();
21 version
= bundle
.getHeaders().get("Bundle-Version").toString();
24 public String
getDeployedSystemId() {
25 return name
+ ":" + version
;
28 public DeploymentData
getDeploymentData() {
29 // TODO Auto-generated method stub
33 public Distribution
getDistribution() {
37 public TargetData
getTargetData() {
38 // TODO Auto-generated method stub
42 public String
getName() {
46 public String
getVersion() {
50 public void setName(String name
) {
54 public void setVersion(String version
) {
55 this.version
= version
;
58 public void setDistribution(Distribution distribution
) {
59 this.distribution
= distribution
;