projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve A2 provisioning framework.
[lgpl/argeo-commons.git]
/
org.argeo.osgi.boot
/
src
/
org
/
argeo
/
osgi
/
boot
/
a2
/
A2Branch.java
diff --git
a/org.argeo.osgi.boot/src/org/argeo/osgi/boot/a2/A2Branch.java
b/org.argeo.osgi.boot/src/org/argeo/osgi/boot/a2/A2Branch.java
index ae715eceae5420c9cc2d42b0c65639a3e51f9d26..9e3f81dec95cbfa5758d18c3ea34a55145cace05 100644
(file)
--- a/
org.argeo.osgi.boot/src/org/argeo/osgi/boot/a2/A2Branch.java
+++ b/
org.argeo.osgi.boot/src/org/argeo/osgi/boot/a2/A2Branch.java
@@
-7,13
+7,18
@@
import java.util.TreeMap;
import org.argeo.osgi.boot.OsgiBootUtils;
import org.osgi.framework.Version;
import org.argeo.osgi.boot.OsgiBootUtils;
import org.osgi.framework.Version;
-class A2Branch implements Comparable<A2Branch> {
+/**
+ * A logical linear sequence of versions of a given {@link A2Component}. This is
+ * typically a combination of major and minor version, indicating backward
+ * compatibility.
+ */
+public class A2Branch implements Comparable<A2Branch> {
private final A2Component component;
private final String id;
final SortedMap<Version, A2Module> modules = Collections.synchronizedSortedMap(new TreeMap<>());
private final A2Component component;
private final String id;
final SortedMap<Version, A2Module> modules = Collections.synchronizedSortedMap(new TreeMap<>());
- A2Branch(A2Component component, String id) {
+
public
A2Branch(A2Component component, String id) {
this.component = component;
this.id = id;
component.branches.put(id, this);
this.component = component;
this.id = id;
component.branches.put(id, this);