cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r475534 - in /incubator/cxf/trunk/tools: common/src/main/java/org/apache/cxf/tools/common/ wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/ wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/template/
Date Thu, 16 Nov 2006 02:18:45 GMT
Author: ema
Date: Wed Nov 15 18:18:44 2006
New Revision: 475534

URL: http://svn.apache.org/viewvc?view=rev&rev=475534
Log:
Added flag to define impl class in generated server code

Modified:
    incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolConstants.java
    incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/ServerGenerator.java
    incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/template/server.vm

Modified: incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolConstants.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolConstants.java?view=diff&rev=475534&r1=475533&r2=475534
==============================================================================
--- incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolConstants.java
(original)
+++ incubator/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ToolConstants.java
Wed Nov 15 18:18:44 2006
@@ -66,7 +66,10 @@
     public static final String CFG_LIB_REF = "library.references";
     public static final String CFG_ANT_PROP = "ant.prop";
     
+   
+    
     //Internal Flag to generate
+    public static final String CFG_IMPL_CLASS = "implClass";
     public static final String CFG_GEN_CLIENT = "genClient";
     public static final String CFG_GEN_SERVER = "genServer";
     public static final String CFG_GEN_IMPL = "genImpl";

Modified: incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/ServerGenerator.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/ServerGenerator.java?view=diff&rev=475534&r1=475533&r2=475534
==============================================================================
--- incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/ServerGenerator.java
(original)
+++ incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/ServerGenerator.java
Wed Nov 15 18:18:44 2006
@@ -95,6 +95,12 @@
             clearAttributes();
             setAttributes("serverClassName", serverClassName);
             setAttributes("intf", intf);
+            if (penv.optionSet(ToolConstants.CFG_IMPL_CLASS)) {
+                setAttributes("impl", 
+                              (String)penv.get(ToolConstants.CFG_IMPL_CLASS));
+            } else {
+                setAttributes("impl", intf.getName() + "Impl");
+            }
             setAttributes("address", address);
             setCommonAttributes();
 

Modified: incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/template/server.vm
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/template/server.vm?view=diff&rev=475534&r1=475533&r2=475534
==============================================================================
--- incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/template/server.vm
(original)
+++ incubator/cxf/trunk/tools/wsdl2java/src/main/java/org/apache/cxf/tools/wsdl2java/frontend/jaxws/template/server.vm
Wed Nov 15 18:18:44 2006
@@ -32,7 +32,7 @@
 
     protected ${serverClassName}() throws Exception {
         System.out.println("Starting Server");
-        Object implementor = new ${intf.Name}Impl();
+        Object implementor = new ${impl}();
         String address = "${address}";
         Endpoint.publish(address, implementor);
     }



Mime
View raw message