Search in sources :

Example 1 with JavaToWSDLProcessor

use of org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLProcessor in project cxf by apache.

the class JavaToWSContainer method processWSDL.

private void processWSDL(ToolContext env, String ft) {
    Processor processor = new JavaToWSDLProcessor();
    processor.setEnvironment(env);
    processor.process();
    if (ft.equals(ToolConstants.JAXWS_FRONTEND)) {
        if (env.optionSet(ToolConstants.CFG_SERVER) || env.optionSet(ToolConstants.CFG_CLIENT)) {
            processor = new JAXWSFrontEndProcessor();
            processor.setEnvironment(env);
            processor.process();
        }
    } else {
        processor = new SimpleFrontEndProcessor();
        processor.setEnvironment(env);
        processor.process();
    }
}
Also used : JAXWSFrontEndProcessor(org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.JAXWSFrontEndProcessor) JavaToWSDLProcessor(org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLProcessor) Processor(org.apache.cxf.tools.common.Processor) JAXWSFrontEndProcessor(org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.JAXWSFrontEndProcessor) SimpleFrontEndProcessor(org.apache.cxf.tools.java2wsdl.processor.internal.simple.SimpleFrontEndProcessor) SimpleFrontEndProcessor(org.apache.cxf.tools.java2wsdl.processor.internal.simple.SimpleFrontEndProcessor) JavaToWSDLProcessor(org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLProcessor)

Aggregations

Processor (org.apache.cxf.tools.common.Processor)1 JavaToWSDLProcessor (org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLProcessor)1 JAXWSFrontEndProcessor (org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.JAXWSFrontEndProcessor)1 SimpleFrontEndProcessor (org.apache.cxf.tools.java2wsdl.processor.internal.simple.SimpleFrontEndProcessor)1