View Javadoc

1   /*
2    * Copyright  1999-2004 The Apache Software Foundation.
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *
16   */
17  
18  package org.apache.axis.message.addressing.tools.wsdl;
19  
20  import org.apache.axis.wsdl.gen.Generator;
21  import org.apache.axis.wsdl.symbolTable.BindingEntry;
22  import org.apache.axis.wsdl.symbolTable.PortTypeEntry;
23  import org.apache.axis.wsdl.symbolTable.ServiceEntry;
24  import org.apache.axis.wsdl.symbolTable.SymTabEntry;
25  import org.apache.axis.wsdl.symbolTable.SymbolTable;
26  import org.apache.axis.wsdl.symbolTable.TypeEntry;
27  import org.apache.axis.wsdl.toJava.Emitter;
28  import org.apache.axis.wsdl.toJava.JavaBindingWriter;
29  import org.apache.axis.wsdl.toJava.JavaGeneratorFactory;
30  
31  import javax.wsdl.Binding;
32  import javax.wsdl.Service;
33  
34  import java.util.Iterator;
35  import java.util.Vector;
36  
37  /***
38   *
39   * @author Jarek Gawor (gawor@mcs.anl.gov)
40   */
41  public class JavaAddressingGeneratorFactory extends JavaGeneratorFactory {
42  
43      public JavaAddressingGeneratorFactory(Emitter emitter) {
44          super(emitter);
45      }
46  
47      public Generator getGenerator(
48          Service service,
49          SymbolTable symbolTable
50      ) {
51          return new JavaAddressingServiceWriter(emitter, service, symbolTable);
52      }
53  
54  }