import org.argeo.slc.core.build.ResourceDistribution;
import org.argeo.slc.deploy.DeploymentData;
import org.argeo.slc.deploy.Module;
+import org.argeo.slc.deploy.ModuleDescriptor;
import org.argeo.slc.deploy.TargetData;
import org.argeo.slc.process.RealizedFlow;
import org.osgi.framework.Bundle;
/** A deployed OSGi bundle. */
public class OsgiBundle extends BasicNameVersion implements Module {
- private static final long serialVersionUID = -1970854723780452072L;
+ private static final long serialVersionUID = 35073826504550477L;
private ResourceDistribution distribution;
private Long internalBundleId;
- private String label;
+ private String title;
private String description;
public OsgiBundle() {
}
/** Value of the <code>Bundle-Name</code> directive. */
- public String getLabel() {
- return label;
+ public String getTitle() {
+ return title;
}
- public void setLabel(String label) {
- this.label = label;
+ public void setTitle(String label) {
+ this.title = label;
}
/** Value of the <code>Bundle-Description</code> directive. */
this.description = description;
}
+ public ModuleDescriptor getModuleDescriptor() {
+ ModuleDescriptor moduleDescriptor = new ModuleDescriptor();
+ moduleDescriptor.setName(getName());
+ moduleDescriptor.setVersion(getVersion());
+ moduleDescriptor.setDescription(description);
+ moduleDescriptor.setTitle(title);
+ return moduleDescriptor;
+ }
}