@Override
public void handleResource(ClasspathResource resource) {
String path = resource.getPath();
if ("META-INF/cxf/cxf.xml".equals(path)) {
SpringImport cxfImport = new SpringImport();
cxfImport.setUri("classpath:META-INF/cxf/cxf.xml");
springImports.add(cxfImport);
}
else if ("META-INF/cxf/cxf-servlet.xml".equals(path)) {
SpringImport cxfImport = new SpringImport();
cxfImport.setUri("classpath:META-INF/cxf/cxf-servlet.xml");
springImports.add(cxfImport);
}
else if (enableJaxws && "META-INF/cxf/cxf-extension-soap.xml".equals(path)) {
SpringImport cxfImport = new SpringImport();
cxfImport.setUri("classpath:META-INF/cxf/cxf-extension-soap.xml");
springImports.add(cxfImport);
}
else if (enableJaxrs && "META-INF/cxf/cxf-extension-jaxrs-binding.xml".equals(path)) {
SpringImport cxfImport = new SpringImport();
cxfImport.setUri("classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml");
springImports.add(cxfImport);
}
}