use of org.apache.cxf.tools.common.model.JavaInterface in project cxf by apache.
the class SimpleClientGenerator method generate.
public void generate(ToolContext penv) throws ToolException {
this.env = penv;
JavaModel javaModel = env.get(JavaModel.class);
if (passthrough()) {
return;
}
Map<String, JavaInterface> interfaces = javaModel.getInterfaces();
for (JavaInterface intf : interfaces.values()) {
clearAttributes();
setAttributes("intf", intf);
setAttributes("seiClass", env.get(ToolConstants.SEI_CLASS));
setAttributes("address", env.get(ToolConstants.CFG_ADDRESS));
setCommonAttributes();
doWrite(CLIENT_TEMPLATE, parseOutputName(intf.getPackageName(), intf.getName() + "Client"));
env.put(ToolConstants.CLIENT_CLASS, intf.getFullClassName() + "Client");
}
}
use of org.apache.cxf.tools.common.model.JavaInterface in project cxf by apache.
the class SimpleSEIGenerator method generate.
public void generate(ToolContext penv) throws ToolException {
this.env = penv;
JavaModel javaModel = env.get(JavaModel.class);
if (passthrough()) {
return;
}
Map<String, JavaInterface> interfaces = javaModel.getInterfaces();
for (JavaInterface intf : interfaces.values()) {
clearAttributes();
setAttributes("intf", intf);
setCommonAttributes();
doWrite(SEI_TEMPLATE, parseOutputName(intf.getPackageName(), intf.getName()));
env.put(ToolConstants.SEI_CLASS, intf.getFullClassName());
}
}
use of org.apache.cxf.tools.common.model.JavaInterface in project cxf by apache.
the class SimpleServerGenerator method generate.
public void generate(ToolContext penv) throws ToolException {
this.env = penv;
JavaModel javaModel = env.get(JavaModel.class);
if (passthrough()) {
return;
}
Map<String, JavaInterface> interfaces = javaModel.getInterfaces();
for (JavaInterface intf : interfaces.values()) {
clearAttributes();
setAttributes("intf", intf);
setAttributes("implClass", env.get(ToolConstants.IMPL_CLASS));
setAttributes("address", env.get(ToolConstants.CFG_ADDRESS));
setCommonAttributes();
doWrite(SERVER_TEMPLATE, parseOutputName(intf.getPackageName(), intf.getName() + "Server"));
env.put(ToolConstants.SERVER_CLASS, intf.getFullClassName() + "Server");
}
}
Aggregations