Author: doogie
Date: Wed Jul 1 02:41:52 2009
New Revision: 790026
URL: http://svn.apache.org/viewvc?rev=790026&view=rev
Log:
Don't need to wrap the containing SimpleMethod, as its operations are
will be wrapped.
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=790026&r1=790025&r2=790026&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java
(original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java Wed
Jul 1 02:41:52 2009
@@ -244,15 +244,7 @@
}
protected static SimpleMethod compileSimpleMethod(Element
simpleMethodElement, Map<String, SimpleMethod> simpleMethods, String location) {
- if
(UtilProperties.propertyValueEquals("webslinger-invoker.properties",
"wrap-calls", "true")) {
- Wrap<SimpleMethod> wrap = new
Wrap<SimpleMethod>().fileName(location).wrappedClass(SimpleMethod.class);
- wrap.loader(SimpleMethod.class.getClassLoader());
- wrap.wrap(simpleMethodExecMethod);
- SimpleMethod simpleMethod = wrap.newInstance(new Class<?>[]
{Element.class, Map.class, String.class}, new Object[] {simpleMethodElement,
simpleMethods, location});
- return simpleMethod;
- } else {
- return new SimpleMethod(simpleMethodElement, simpleMethods,
location);
- }
+ return new SimpleMethod(simpleMethodElement, simpleMethods, location);
}
public static Map<String, SimpleMethod> getDirectSimpleMethods(String
name, String content, String fromLocation) throws MiniLangException {