Merge tag 'v2.3.20' into testing
[gpl/argeo-jcr.git] / org.argeo.slc.repo / src / org / argeo / slc / repo / osgi / ArchiveWrapperCNV.java
diff --git a/org.argeo.slc.repo/src/org/argeo/slc/repo/osgi/ArchiveWrapperCNV.java b/org.argeo.slc.repo/src/org/argeo/slc/repo/osgi/ArchiveWrapperCNV.java
new file mode 100644 (file)
index 0000000..910d581
--- /dev/null
@@ -0,0 +1,25 @@
+package org.argeo.slc.repo.osgi;
+
+import org.argeo.slc.DefaultCategoryNameVersion;
+
+/** A module within an archive. */
+public class ArchiveWrapperCNV extends DefaultCategoryNameVersion implements Runnable {
+       /** Build runnable */
+       private ArchiveWrapper build;
+
+       public ArchiveWrapperCNV(String category, String name, String version, ArchiveWrapper build) {
+               super(category, name, version);
+               this.build = build;
+       }
+
+       @Override
+       public void run() {
+               if (build != null)
+                       build.run();
+       }
+
+       public ArchiveWrapper getBuild() {
+               return build;
+       }
+
+}