Author: tyrell
Date: Sat Dec  8 18:14:49 2007
New Revision: 10726

Log:

Code cleanup.

Modified:
   trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
   
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
==============================================================================
--- trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java     
(original)
+++ trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java     
Sat Dec  8 18:14:49 2007
@@ -38,6 +38,8 @@
     public static String JABBER = IM_CONFIG + "." + "Jabber";
     public static String YAHOO = IM_CONFIG + "." + "Yahoo";
 
+    public static String QUARTZ_FUNCTION_SCHEDULER = "FunctionScheduler";
+
     public static String ADMIN_PASSWORD = "admin";
 
     public static final String EMAIL_RELAY_HOST = "email_relay_host";

Modified: 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
==============================================================================
--- 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
   (original)
+++ 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
   Sat Dec  8 18:14:49 2007
@@ -211,7 +211,7 @@
                 return;
             }
             if (service != null) {
-                Parameter shedulerParam = 
service.getParameter("FunctionScheduler");
+                Parameter shedulerParam = 
service.getParameter(MashupConstants.QUARTZ_FUNCTION_SCHEDULER);
                 if (shedulerParam != null && shedulerParam.getValue() 
instanceof Scheduler) {
                     Scheduler functionScheduler = (Scheduler) 
shedulerParam.getValue();
                     functionScheduler.shutdown();
@@ -281,7 +281,7 @@
             scheduler.start();
 
             //Storing the scheduler as a parameter
-            Parameter functionScheduler = new Parameter("FunctionScheduler", 
scheduler);
+            Parameter functionScheduler = new 
Parameter(MashupConstants.QUARTZ_FUNCTION_SCHEDULER, scheduler);
             axisService.addParameter(functionScheduler);
 
             // Creating the service.resources dir

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to