org.apache.geronimo.deployment.NamespaceDrivenBuilderCollection Maven / Gradle / Ivy
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.geronimo.deployment;
import java.util.Collection;
import java.util.Iterator;
import javax.xml.namespace.QName;
import org.apache.geronimo.common.DeploymentException;
import org.apache.geronimo.kernel.repository.Environment;
import org.apache.xmlbeans.XmlObject;
/**
* @version $Rev: 741679 $ $Date: 2009-02-06 11:07:17 -0800 (Fri, 06 Feb 2009) $
*/
public class NamespaceDrivenBuilderCollection extends AbstractBuilderCollection {
public NamespaceDrivenBuilderCollection(Collection builders) {
super(builders);
}
public void buildEnvironment(XmlObject container, Environment environment) throws DeploymentException {
for (NamespaceDrivenBuilder builder : builders) {
builder.buildEnvironment(container, environment);
}
}
public void build(XmlObject container, DeploymentContext applicationContext, DeploymentContext moduleContext) throws DeploymentException {
for (NamespaceDrivenBuilder builder : builders) {
builder.build(container, applicationContext, moduleContext);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy