throw new ToolException("Cannot get databinding bean " + databindingBeanName
+ " for databinding " + databindingName);
}
String beanName = getBuilderBeanName(s);
ServiceBuilder builder = null;
try {
builder = (ServiceBuilder) applicationContext.getBean(beanName, ServiceBuilder.class);
AbstractServiceFactory serviceFactory = (AbstractServiceFactory)builder;
serviceFactory.setDataBinding(dataBinding);
} catch (RuntimeException e) {
throw new ToolException("Can not get ServiceBuilder bean " + beanName
+ "to initialize the ServiceBuilder for style: " + s
+ " Reason: \n" + e.getMessage(),
e);
}
builder.setServiceClass(serviceClass);
return builder;
}