@@ -0,0 +1,1612 @@
+package org.jboss.msc.resolver;%0A%0Aimport java.util.Collection;%0Aimport java.util.LinkedHashMap;%0A%0A/**%0A * An ordered set of service definitions that should be processed as one.%0A * %0A * @author Jason T. Greene%0A */%0Apublic final class ServiceBatch %7B%0A%0A    private LinkedHashMap%3CString, ServiceDefinition%3E definitions;%0A    %0A    /**%0A     * Add a service definition to the batch. %0A     * %0A     * @param definition%0A     * @return this batch%0A     */%0A    public ServiceBatch add(ServiceDefinition definition)%0A    %7B%0A        definitions.put(definition.getName(), definition);%0A        %0A        return this;%0A    %7D%0A    %0A    /**%0A     * Add a list of service definitions to the batch, in the order of the list.%0A     * %0A     * @param definitions add a list of service definitions to the batch, in the order of the list%0A     * @return this batch%0A     */%0A    public ServiceBatch add(ServiceDefinition... definitions)%0A    %7B%0A        for (ServiceDefinition d : definitions)%0A            this.definitions.put(d.getName(), d);%0A        %0A        return this;%0A    %7D%0A    %0A    /**%0A     * Add a collection of service definitions to the batch, in the order of the collection (if ordered).%0A     * %0A     * @param definitions add a list of service definitions to the batch, in the order of the list%0A     * @return this batch%0A     */%0A    public ServiceBatch add(Collection%3CServiceDefinition%3E definitions)%0A    %7B%0A        for (ServiceDefinition d : definitions)%0A            this.definitions.put(d.getName(), d);%0A        %0A        return this;%0A    %7D%0A    %0A    LinkedHashMap%3CString, ServiceDefinition%3E definitionMap()%0A    %7B%0A        return definitions;%0A    %7D%0A%0A%7D%0A

Add initial batch API