Author: alessio.soldano(a)jboss.com
Date: 2010-04-23 09:10:33 -0400 (Fri, 23 Apr 2010)
New Revision: 12111
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/JBossWSProviderImpl.java
Log:
[JBPAPP-3243] allowing @WebServiceProvider annotation too
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/JBossWSProviderImpl.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/JBossWSProviderImpl.java 2010-04-23
12:13:03 UTC (rev 12110)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/JBossWSProviderImpl.java 2010-04-23
13:10:33 UTC (rev 12111)
@@ -27,6 +27,9 @@
import java.net.URL;
import java.net.URLClassLoader;
+import javax.jws.WebService;
+import javax.xml.ws.WebServiceProvider;
+
import org.jboss.ws.WSException;
import org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder;
import org.jboss.ws.metadata.umdm.UnifiedMetaData;
@@ -80,6 +83,12 @@
messageStream.println("Output directory: " +
outputDir.getAbsolutePath());
messageStream.println("Source directory: " +
sourceDir.getAbsolutePath());
+
+ if (!endpointClass.isAnnotationPresent(WebService.class) &&
endpointClass.isAnnotationPresent(WebServiceProvider.class))
+ {
+ messageStream.println("@WebServiceProvider endpoint specified.");
+ return;
+ }
// Create a dummy classloader to catch generated classes
ClassLoader loader = new URLClassLoader(new URL[0], this.loader);
Show replies by date