Javadoc fixes
[jabaws.git] / webservices / compbio / ws / server / SimpleWSPublisher.java
index 3230317..3e3a34b 100644 (file)
@@ -28,46 +28,47 @@ import javax.xml.ws.Endpoint;
  * @author pvtroshin\r
  * @date October 2009\r
  */\r
+@Deprecated\r
 public class SimpleWSPublisher {\r
 \r
-    public SimpleWSPublisher(Object exec, String context) {\r
+       public SimpleWSPublisher(Object exec, String context) {\r
 \r
-    }\r
+       }\r
 \r
-    public static void main(String[] args) {\r
-       if (args.length != 2) {\r
-           System.out.println("Usage: ");\r
-           System.out.println("SimpleWSPublisher context class");\r
-           System.out\r
-                   .println("where context is a context name, the name after the address by "\r
-                           + "which web service can be called e.g. Clustal "\r
-                           + " and class is a web service implementation class");\r
+       public static void main(String[] args) {\r
+               if (args.length != 2) {\r
+                       System.out.println("Usage: ");\r
+                       System.out.println("SimpleWSPublisher context class");\r
+                       System.out\r
+                                       .println("where context is a context name, the name after the address by "\r
+                                                       + "which web service can be called e.g. Clustal "\r
+                                                       + " and class is a web service implementation class");\r
 \r
+               }\r
+               String context = args[0];\r
+               String clazzName = args[1];\r
+               try {\r
+                       Class<?> clazz = Class.forName(clazzName);\r
+                       if (!clazz.isAnnotationPresent(WebService.class)) {\r
+                               System.out.println("Can only start web services. "\r
+                                               + "Please check whether the class provided is "\r
+                                               + "annotated with Webservice annotation");\r
+                               System.exit(1);\r
+                       }\r
+                       Endpoint.publish("http://127.0.0.1:7979/" + context,\r
+                                       clazz.newInstance());\r
+               } catch (InstantiationException e) {\r
+                       e.printStackTrace();\r
+                       System.exit(1);\r
+               } catch (IllegalAccessException e) {\r
+                       e.printStackTrace();\r
+                       System.exit(1);\r
+               } catch (ClassNotFoundException e) {\r
+                       e.printStackTrace();\r
+                       System.exit(1);\r
+               } catch (IllegalArgumentException e) {\r
+                       e.printStackTrace();\r
+                       System.exit(1);\r
+               }\r
        }\r
-       String context = args[0];\r
-       String clazzName = args[1];\r
-       try {\r
-           Class<?> clazz = Class.forName(clazzName);\r
-           if (!clazz.isAnnotationPresent(WebService.class)) {\r
-               System.out.println("Can only start web services. "\r
-                       + "Please check whether the class provided is "\r
-                       + "annotated with Webservice annotation");\r
-               System.exit(1);\r
-           }\r
-           Endpoint.publish("http://127.0.0.1:7979/" + context, clazz\r
-                   .newInstance());\r
-       } catch (InstantiationException e) {\r
-           e.printStackTrace();\r
-           System.exit(1);\r
-       } catch (IllegalAccessException e) {\r
-           e.printStackTrace();\r
-           System.exit(1);\r
-       } catch (ClassNotFoundException e) {\r
-           e.printStackTrace();\r
-           System.exit(1);\r
-       } catch (IllegalArgumentException e) {\r
-           e.printStackTrace();\r
-           System.exit(1);\r
-       }\r
-    }\r
 }\r