Author: keith
Date: Tue Apr 22 18:55:25 2008
New Revision: 15984

Log:

Adding more documentation


Modified:
   
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JavaScriptServiceAnnotationParser.java

Modified: 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JavaScriptServiceAnnotationParser.java
==============================================================================
--- 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JavaScriptServiceAnnotationParser.java
    (original)
+++ 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JavaScriptServiceAnnotationParser.java
    Tue Apr 22 18:55:25 2008
@@ -33,10 +33,49 @@
  * <pre>
  * eg:
  *      //service level annotations
- *       this.targetNamespace = &quot;http://wso2.org/Mashup&quot;;
- *       this.schemaTargetNamespace = &quot;http://wso2.org/schema&quot;;
- *       this.serviceName = reverse;
- *       this.documentation = Simple string or html markup;
+ *       this.targetNamespace = "http://wso2.org/Mashup";;
+ *       this.schemaTargetNamespace = "http://wso2.org/schema";;
+ *       this.serviceName = "reverse";
+ *       this.documentation = "Simple string or html markup";
+ *       this.serviceScope = "reverse";
+ *       this.init=init;
+ *
+ *       function init() {
+ *         // Do some stuff upon deployment
+ *         print("init");
+ *       }
+ *
+ *       OR
+ *
+ *       this.init= function init() {
+ *         // Do some stuff upon deployment
+ *         print("init");
+ *       }
+ *
+ *       this.destroy=destroy;
+ *       function destroy() {
+ *         // Do some stuff upon undeployment
+ *         print("destroy");
+ *       }
+ *
+ *       OR
+ *
+ *       this.destroy= function destroy() {
+ *         // Do some stuff upon undeployment
+ *         print("destroy");
+ *       }
+ *
+ *       this.undispatched= function bar(){
+ *           // Do something here
+ *       }
+ *
+ *       OR
+ *
+ *       this.undispatched= "bar";
+ *       function bar(){
+ *           // Do something here
+ *       } 
+ *
  * </pre>
  * <p/>
  * For more details visit <a

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

Reply via email to