
de.codecentric.cxf.autodetection.diagnostics.WebServiceClientMissingFailureAnalyzer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cxf-spring-boot-starter Show documentation
Show all versions of cxf-spring-boot-starter Show documentation
Boot starter for SOAP-Webservices with Apache CXF using JAX-WS & JAXB with Annotations only
The newest version!
package de.codecentric.cxf.autodetection.diagnostics;
import org.springframework.boot.diagnostics.AbstractFailureAnalyzer;
import org.springframework.boot.diagnostics.FailureAnalysis;
/**
* FailureAnalyzer to show custom Failure Message, if a WebServiceClient annotated class is missing
* (which is mandatory for autodetection and instantiation of the CXF endpoint(s))
*
* @author jonashackt
*/
public class WebServiceClientMissingFailureAnalyzer extends AbstractFailureAnalyzer {
@Override
protected FailureAnalysis analyze(Throwable rootFailure, WebServiceClientNotFoundException cause) {
return new FailureAnalysis(WebServiceClientNotFoundException.MESSAGE,
"Use the cxf-spring-boot-starter-maven-plugin (https://github.com/codecentric/cxf-spring-boot-starter-maven-plugin) " +
"to generate the needed class files from your WSDL & XSDs", cause);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy