ignore client proxies for export

This commit is contained in:
Juergen Hoeller 2009-12-13 23:50:48 +00:00
parent 3cfac84bff
commit 59d9f73f46
1 changed files with 18 additions and 16 deletions

View File

@ -110,6 +110,7 @@ public abstract class AbstractJaxWsServiceExporter implements BeanFactoryAware,
for (String beanName : beanNames) { for (String beanName : beanNames) {
try { try {
Class<?> type = this.beanFactory.getType(beanName); Class<?> type = this.beanFactory.getType(beanName);
if (type != null && !type.isInterface()) {
WebService wsAnnotation = type.getAnnotation(WebService.class); WebService wsAnnotation = type.getAnnotation(WebService.class);
WebServiceProvider wsProviderAnnotation = type.getAnnotation(WebServiceProvider.class); WebServiceProvider wsProviderAnnotation = type.getAnnotation(WebServiceProvider.class);
if (wsAnnotation != null || wsProviderAnnotation != null) { if (wsAnnotation != null || wsProviderAnnotation != null) {
@ -129,6 +130,7 @@ public abstract class AbstractJaxWsServiceExporter implements BeanFactoryAware,
this.publishedEndpoints.add(endpoint); this.publishedEndpoints.add(endpoint);
} }
} }
}
catch (CannotLoadBeanClassException ex) { catch (CannotLoadBeanClassException ex) {
// ignore beans where the class is not resolvable // ignore beans where the class is not resolvable
} }