com.sun.tools.internal.ws.api.TJavaGeneratorExtension Java Examples

The following examples show how to use com.sun.tools.internal.ws.api.TJavaGeneratorExtension. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SeiGenerator.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) {
    init(model, options, receiver);
    extensionHandlers = new ArrayList<TJavaGeneratorExtension>();

    // register handlers for default extensions

    // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl
    if (options.target.isLaterThan(Options.Target.V2_2)) {
       register(new W3CAddressingJavaGeneratorExtension());
    }

    for (TJavaGeneratorExtension j : extensions) {
        register(j);
    }

    this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()]));
}
 
Example #2
Source File: SeiGenerator.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) {
    init(model, options, receiver);
    extensionHandlers = new ArrayList<TJavaGeneratorExtension>();

    // register handlers for default extensions

    // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl
    if (options.target.isLaterThan(Options.Target.V2_2)) {
       register(new W3CAddressingJavaGeneratorExtension());
    }

    for (TJavaGeneratorExtension j : extensions) {
        register(j);
    }

    this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()]));
}
 
Example #3
Source File: SeiGenerator.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) {
    init(model, options, receiver);
    extensionHandlers = new ArrayList<TJavaGeneratorExtension>();

    // register handlers for default extensions

    // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl
    if (options.target.isLaterThan(Options.Target.V2_2)) {
       register(new W3CAddressingJavaGeneratorExtension());
    }

    for (TJavaGeneratorExtension j : extensions) {
        register(j);
    }

    this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()]));
}
 
Example #4
Source File: SeiGenerator.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) {
    init(model, options, receiver);
    extensionHandlers = new ArrayList<TJavaGeneratorExtension>();

    // register handlers for default extensions

    // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl
    if (options.target.isLaterThan(Options.Target.V2_2)) {
       register(new W3CAddressingJavaGeneratorExtension());
    }

    for (TJavaGeneratorExtension j : extensions) {
        register(j);
    }

    this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()]));
}
 
Example #5
Source File: SeiGenerator.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) {
    init(model, options, receiver);
    extensionHandlers = new ArrayList<TJavaGeneratorExtension>();

    // register handlers for default extensions

    // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl
    if (options.target.isLaterThan(Options.Target.V2_2)) {
       register(new W3CAddressingJavaGeneratorExtension());
    }

    for (TJavaGeneratorExtension j : extensions) {
        register(j);
    }

    this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()]));
}
 
Example #6
Source File: SeiGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) {
    init(model, options, receiver);
    extensionHandlers = new ArrayList<TJavaGeneratorExtension>();

    // register handlers for default extensions

    // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl
    if (options.target.isLaterThan(Options.Target.V2_2)) {
       register(new W3CAddressingJavaGeneratorExtension());
    }

    for (TJavaGeneratorExtension j : extensions) {
        register(j);
    }

    this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()]));
}
 
Example #7
Source File: SeiGenerator.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) {
    init(model, options, receiver);
    extensionHandlers = new ArrayList<TJavaGeneratorExtension>();

    // register handlers for default extensions

    // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl
    if (options.target.isLaterThan(Options.Target.V2_2)) {
       register(new W3CAddressingJavaGeneratorExtension());
    }

    for (TJavaGeneratorExtension j : extensions) {
        register(j);
    }

    this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()]));
}
 
Example #8
Source File: SeiGenerator.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public void init(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions) {
    init(model, options, receiver);
    extensionHandlers = new ArrayList<TJavaGeneratorExtension>();

    // register handlers for default extensions

    // 2.2 Spec requires generation of @Action when wsam:Action is explicitly stated in wsdl
    if (options.target.isLaterThan(Options.Target.V2_2)) {
       register(new W3CAddressingJavaGeneratorExtension());
    }

    for (TJavaGeneratorExtension j : extensions) {
        register(j);
    }

    this.extension = new JavaGeneratorExtensionFacade(extensionHandlers.toArray(new TJavaGeneratorExtension[extensionHandlers.size()]));
}
 
Example #9
Source File: JavaGeneratorExtensionFacade.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void writeMethodAnnotations(TWSDLOperation wsdlOperation, JMethod jMethod) {
    for (TJavaGeneratorExtension e : extensions) {
        e.writeMethodAnnotations(wsdlOperation, jMethod);
    }
}
 
Example #10
Source File: JavaGeneratorExtensionFacade.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
JavaGeneratorExtensionFacade(TJavaGeneratorExtension... extensions) {
    assert extensions != null;
    this.extensions = extensions;
}
 
Example #11
Source File: JavaGeneratorExtensionFacade.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public void writeMethodAnnotations(TWSDLOperation wsdlOperation, JMethod jMethod) {
    for (TJavaGeneratorExtension e : extensions) {
        e.writeMethodAnnotations(wsdlOperation, jMethod);
    }
}
 
Example #12
Source File: JavaGeneratorExtensionFacade.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public void writeMethodAnnotations(TWSDLOperation wsdlOperation, JMethod jMethod) {
    for (TJavaGeneratorExtension e : extensions) {
        e.writeMethodAnnotations(wsdlOperation, jMethod);
    }
}
 
Example #13
Source File: SeiGenerator.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions){
    SeiGenerator seiGenerator = new SeiGenerator();
    seiGenerator.init(model, options, receiver, extensions);
    seiGenerator.doGeneration();
}
 
Example #14
Source File: SeiGenerator.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions){
    SeiGenerator seiGenerator = new SeiGenerator();
    seiGenerator.init(model, options, receiver, extensions);
    seiGenerator.doGeneration();
}
 
Example #15
Source File: SeiGenerator.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private void register(TJavaGeneratorExtension h) {
    extensionHandlers.add(h);
}
 
Example #16
Source File: JavaGeneratorExtensionFacade.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
JavaGeneratorExtensionFacade(TJavaGeneratorExtension... extensions) {
    assert extensions != null;
    this.extensions = extensions;
}
 
Example #17
Source File: JavaGeneratorExtensionFacade.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
JavaGeneratorExtensionFacade(TJavaGeneratorExtension... extensions) {
    assert extensions != null;
    this.extensions = extensions;
}
 
Example #18
Source File: SeiGenerator.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions){
    SeiGenerator seiGenerator = new SeiGenerator();
    seiGenerator.init(model, options, receiver, extensions);
    seiGenerator.doGeneration();
}
 
Example #19
Source File: SeiGenerator.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private void register(TJavaGeneratorExtension h) {
    extensionHandlers.add(h);
}
 
Example #20
Source File: SeiGenerator.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
private void register(TJavaGeneratorExtension h) {
    extensionHandlers.add(h);
}
 
Example #21
Source File: JavaGeneratorExtensionFacade.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
JavaGeneratorExtensionFacade(TJavaGeneratorExtension... extensions) {
    assert extensions != null;
    this.extensions = extensions;
}
 
Example #22
Source File: JavaGeneratorExtensionFacade.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void writeMethodAnnotations(TWSDLOperation wsdlOperation, JMethod jMethod) {
    for (TJavaGeneratorExtension e : extensions) {
        e.writeMethodAnnotations(wsdlOperation, jMethod);
    }
}
 
Example #23
Source File: SeiGenerator.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions){
    SeiGenerator seiGenerator = new SeiGenerator();
    seiGenerator.init(model, options, receiver, extensions);
    seiGenerator.doGeneration();
}
 
Example #24
Source File: SeiGenerator.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
private void register(TJavaGeneratorExtension h) {
    extensionHandlers.add(h);
}
 
Example #25
Source File: SeiGenerator.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
private void register(TJavaGeneratorExtension h) {
    extensionHandlers.add(h);
}
 
Example #26
Source File: JavaGeneratorExtensionFacade.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
JavaGeneratorExtensionFacade(TJavaGeneratorExtension... extensions) {
    assert extensions != null;
    this.extensions = extensions;
}
 
Example #27
Source File: JavaGeneratorExtensionFacade.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public void writeMethodAnnotations(TWSDLOperation wsdlOperation, JMethod jMethod) {
    for (TJavaGeneratorExtension e : extensions) {
        e.writeMethodAnnotations(wsdlOperation, jMethod);
    }
}
 
Example #28
Source File: SeiGenerator.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public static void generate(Model model, WsimportOptions options, ErrorReceiver receiver, TJavaGeneratorExtension... extensions){
    SeiGenerator seiGenerator = new SeiGenerator();
    seiGenerator.init(model, options, receiver, extensions);
    seiGenerator.doGeneration();
}
 
Example #29
Source File: SeiGenerator.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private void register(TJavaGeneratorExtension h) {
    extensionHandlers.add(h);
}
 
Example #30
Source File: JavaGeneratorExtensionFacade.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
JavaGeneratorExtensionFacade(TJavaGeneratorExtension... extensions) {
    assert extensions != null;
    this.extensions = extensions;
}