01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.j2ee.deployment;
17:
18: import java.util.Collection;
19: import java.util.Map;
20:
21: import javax.xml.namespace.QName;
22:
23: import org.apache.geronimo.common.DeploymentException;
24: import org.apache.geronimo.deployment.AbstractBuilderCollection;
25: import org.apache.geronimo.kernel.repository.Environment;
26: import org.apache.xmlbeans.XmlObject;
27:
28: /**
29: * @version $Rev: 535381 $ $Date: 2007-05-04 14:04:18 -0700 (Fri, 04 May 2007) $
30: */
31: public class NamingBuilderCollection extends
32: AbstractBuilderCollection<NamingBuilder> implements
33: NamingBuilder {
34:
35: public NamingBuilderCollection(Collection<NamingBuilder> builders,
36: final QName basePlanElementName) {
37: super (builders, basePlanElementName);
38: }
39:
40: public void buildEnvironment(XmlObject specDD, XmlObject plan,
41: Environment environment) throws DeploymentException {
42: for (NamingBuilder namingBuilder : builders) {
43: namingBuilder.buildEnvironment(specDD, plan, environment);
44: }
45: }
46:
47: public void initContext(XmlObject specDD, XmlObject plan,
48: Module module) throws DeploymentException {
49: for (NamingBuilder namingBuilder : builders) {
50: namingBuilder.initContext(specDD, plan, module);
51: }
52: }
53:
54: public void buildNaming(XmlObject specDD, XmlObject plan,
55: Module module, Map componentContext)
56: throws DeploymentException {
57: for (NamingBuilder namingBuilder : builders) {
58: namingBuilder.buildNaming(specDD, plan, module,
59: componentContext);
60: }
61: }
62:
63: }
|