Search in sources :

Example 1 with SimpleImplGenerator

use of org.apache.cxf.tools.java2wsdl.processor.internal.simple.generator.SimpleImplGenerator in project cxf by apache.

the class SimpleFrontEndProcessor method process.

@SuppressWarnings("unchecked")
public void process() throws ToolException {
    List<ServiceInfo> services = (List<ServiceInfo>) context.get(ToolConstants.SERVICE_LIST);
    ServiceInfo serviceInfo = services.get(0);
    JavaInterface jinf = JavaFirstUtil.serviceInfo2JavaInf(serviceInfo);
    JavaModel jm = new JavaModel();
    jm.addInterface("inf", jinf);
    jinf.setJavaModel(jm);
    context.put(JavaModel.class, jm);
    generators.add(new SimpleSEIGenerator());
    generators.add(new SimpleImplGenerator());
    generators.add(new SimpleServerGenerator());
    generators.add(new SimpleClientGenerator());
    generators.add(new AntGenerator());
    for (AbstractGenerator generator : generators) {
        generator.generate(context);
    }
}
Also used : ServiceInfo(org.apache.cxf.service.model.ServiceInfo) SimpleSEIGenerator(org.apache.cxf.tools.java2wsdl.processor.internal.simple.generator.SimpleSEIGenerator) SimpleImplGenerator(org.apache.cxf.tools.java2wsdl.processor.internal.simple.generator.SimpleImplGenerator) SimpleClientGenerator(org.apache.cxf.tools.java2wsdl.processor.internal.simple.generator.SimpleClientGenerator) JavaInterface(org.apache.cxf.tools.common.model.JavaInterface) SimpleServerGenerator(org.apache.cxf.tools.java2wsdl.processor.internal.simple.generator.SimpleServerGenerator) JavaModel(org.apache.cxf.tools.common.model.JavaModel) AbstractGenerator(org.apache.cxf.tools.wsdlto.core.AbstractGenerator) ArrayList(java.util.ArrayList) List(java.util.List) AntGenerator(org.apache.cxf.tools.java2wsdl.processor.internal.AntGenerator)

Aggregations

ArrayList (java.util.ArrayList)1 List (java.util.List)1 ServiceInfo (org.apache.cxf.service.model.ServiceInfo)1 JavaInterface (org.apache.cxf.tools.common.model.JavaInterface)1 JavaModel (org.apache.cxf.tools.common.model.JavaModel)1 AntGenerator (org.apache.cxf.tools.java2wsdl.processor.internal.AntGenerator)1 SimpleClientGenerator (org.apache.cxf.tools.java2wsdl.processor.internal.simple.generator.SimpleClientGenerator)1 SimpleImplGenerator (org.apache.cxf.tools.java2wsdl.processor.internal.simple.generator.SimpleImplGenerator)1 SimpleSEIGenerator (org.apache.cxf.tools.java2wsdl.processor.internal.simple.generator.SimpleSEIGenerator)1 SimpleServerGenerator (org.apache.cxf.tools.java2wsdl.processor.internal.simple.generator.SimpleServerGenerator)1 AbstractGenerator (org.apache.cxf.tools.wsdlto.core.AbstractGenerator)1