View Javadoc

1   /*
2    *  Copyright (c) 2008 Rodrigo Ruiz
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  package org.apache.axis.message.addressing.tools.wsdl;
17  
18  import org.apache.axis.wsdl.gen.Generator;
19  import org.apache.axis.wsdl.symbolTable.SymbolTable;
20  import org.apache.axis.wsdl.toJava.Emitter;
21  import org.apache.axis.wsdl.toJava.JavaGeneratorFactory;
22  
23  import javax.wsdl.Service;
24  
25  /**
26   * Generator Factory implementation for the WS-Addressing aware generator.
27   *
28   * @author Jarek Gawor (gawor@mcs.anl.gov)
29   * @version $Revision: 14 $
30   */
31  public class JavaAddressingGeneratorFactory extends JavaGeneratorFactory {
32  
33    /**
34     * Creates an instance.
35     *
36     * @param emitter Emitter instance
37     */
38    public JavaAddressingGeneratorFactory(Emitter emitter) {
39      super(emitter);
40    }
41  
42    /**
43     * {@inheritDoc}
44     */
45    @Override
46    public Generator getGenerator(Service service, SymbolTable symbolTable) {
47      return new JavaAddressingServiceWriter(emitter, service, symbolTable);
48    }
49  
50  }