Author: keith
Date: Wed Apr 2 20:28:24 2008
New Revision: 15503
Log:
More comments
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:28:24 2008
@@ -568,7 +568,8 @@
}
When this is set any undispatched operations will be dispatched to
this special function.
-
+ This special parameter is taken care by
+ org.wso2.mashup.dispatchers.UndispatchedOperationDispatcher
*/
if (undispatched != null) {
axisService.addParameter(MashupConstants.UNDISPATCHED_OPERATION, undispatched);
@@ -588,6 +589,13 @@
throws AxisFault {
Scriptable scriptable = function;
+
+ /*
+ When some annotations are used to refer functions e.g this.init =
function bar(){};
+ Rhino gives init as the function name. This is correct in a JavaScript
sence but this is
+ not what we need to display in the WSDL. We need the function name as
bar instead to be
+ displayed in the WSDL. Hence we need to do something special here to
get that to work.
+ */
String funcName = (String) scriptable.get("name", scriptable);
String oriMethodName = method;
if (funcName != null && !method.equals(funcName)) {
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev