You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2012/05/05 13:39:56 UTC

svn commit: r1334404 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java

Author: adrianc
Date: Sat May  5 11:39:55 2012
New Revision: 1334404

URL: http://svn.apache.org/viewvc?rev=1334404&view=rev
Log:
More work on the Mini-language <simple-method> element: I added the SimpleMethod object to the environment (bindings) to permit introspection.

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java?rev=1334404&r1=1334403&r2=1334404&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java Sat May  5 11:39:55 2012
@@ -409,6 +409,7 @@ public final class SimpleMethod {
             methodContext.putEnv(eventSessionName, methodContext.getRequest().getSession());
             methodContext.putEnv(eventResponseName, methodContext.getResponse());
         }
+        methodContext.putEnv("simpleMethod", this);
         methodContext.putEnv("methodName", this.getMethodName());
         methodContext.putEnv("methodShortDescription", this.getShortDescription());
         // if using transaction, try to start here