A2 variants supported
[lgpl/argeo-commons.git] / org.argeo.init / src / org / argeo / init / a2 / A2Contribution.java
index 3d33b55e281deb1b48dbc0db97b6e5cc65c3b9b2..a4b720056fda21036a2946f449add9b7e7622985 100644 (file)
@@ -13,6 +13,8 @@ public class A2Contribution implements Comparable<A2Contribution> {
        final static String RUNTIME = "runtime";
        final static String CLASSPATH = "classpath";
 
+       final static String DEFAULT = "default";
+
        private final ProvisioningSource source;
        private final String id;
 
@@ -30,6 +32,10 @@ public class A2Contribution implements Comparable<A2Contribution> {
 //                     context.contributions.put(id, this);
        }
 
+       public Iterable<A2Component> listComponents(Object filter) {
+               return components.values();
+       }
+
        A2Component getOrAddComponent(String componentId) {
                if (components.containsKey(componentId))
                        return components.get(componentId);