Author: keith
Date: Wed Apr 2 20:20:02 2008
New Revision: 15501
Log:
Adding comments on this.init and this.destroy
Modified:
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
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
Wed Apr 2 20:20:02 2008
@@ -516,6 +516,37 @@
ArrayList serviceList = new ArrayList();
serviceList.add(axisService);
+ /*
+ this.init and this.destroy correspond to service lifecycle
functions.
+ this.init is called upon service deployment and this.destroy is
called on
+ undeployment.
+
+ example usage:
+
+ this.init=init;
+ function init() {
+ // Do some stuff upon deployment
+ print("init");
+ }
+
+ this.destroy=destroy;
+ function destroy() {
+ // Do some stuff upon undeployment
+ print("destroy");
+ }
+
+ OR
+
+ this.init= function init() {
+ // Do some stuff upon deployment
+ print("init");
+ }
+
+ this.destroy= function destroy() {
+ // Do some stuff upon undeployment
+ print("destroy");
+ }
+ */
if (init != null) {
init.call(engine.getCx(), engine, engine, new Object[0]);
}
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev