Improve A2 provisioning framework.
[lgpl/argeo-commons.git] / org.argeo.osgi.boot / src / org / argeo / osgi / boot / a2 / A2Component.java
index 5d8dc87cfa6103c89cf7e5a6afa8811ba8d4cc12..a2d5facf98b9cfc8c814cfbe1cd5de91b19486d8 100644 (file)
@@ -6,7 +6,12 @@ import java.util.TreeMap;
 
 import org.osgi.framework.Version;
 
-class A2Component implements Comparable<A2Component> {
+/**
+ * The logical name of a software package. In OSGi's case this is
+ * <code>Bundle-SymbolicName</code>. This is the equivalent of Maven's artifact
+ * id.
+ */
+public class A2Component implements Comparable<A2Component> {
        private final A2Contribution contribution;
        private final String id;
 
@@ -71,7 +76,7 @@ class A2Component implements Comparable<A2Component> {
                if (prefix == null)
                        prefix = "";
                A2Branch lastBranch = last();
-               SortedMap<String, A2Branch> displayMap =  new TreeMap<>(Collections.reverseOrder());
+               SortedMap<String, A2Branch> displayMap = new TreeMap<>(Collections.reverseOrder());
                displayMap.putAll(branches);
                for (String branchId : displayMap.keySet()) {
                        A2Branch branch = displayMap.get(branchId);