svn commit: r685778 [1/2] - in /ofbiz/trunk/framework/minilang: ./ src/META-INF/ src/META-INF/services/ src/org/ofbiz/minilang/ src/org/ofbiz/minilang/method/ src/org/ofbiz/minilang/method/callops/ src/org/ofbiz/minilang/method/conditional/ src/org/ofb...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r685778 [1/2] - in /ofbiz/trunk/framework/minilang: ./ src/META-INF/ src/META-INF/services/ src/org/ofbiz/minilang/ src/org/ofbiz/minilang/method/ src/org/ofbiz/minilang/method/callops/ src/org/ofbiz/minilang/method/conditional/ src/org/ofb...

doogie-3
Author: doogie
Date: Wed Aug 13 22:55:17 2008
New Revision: 685778

URL: http://svn.apache.org/viewvc?rev=685778&view=rev
Log:
Use a factory pattern to load available MethodOperation
implementations.

Added:
    ofbiz/trunk/framework/minilang/src/META-INF/
    ofbiz/trunk/framework/minilang/src/META-INF/services/
    ofbiz/trunk/framework/minilang/src/META-INF/services/org.ofbiz.minilang.method.MethodOperation$Factory
Modified:
    ofbiz/trunk/framework/minilang/build.xml
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/MethodOperation.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/AddError.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallClassMethod.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallObjectMethod.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallService.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallServiceAsynch.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallSimpleMapProcessor.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallSimpleMethod.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CheckErrors.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CreateObject.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/Return.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/SetServiceFields.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/Assert.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/MasterIf.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/While.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/ClearCacheLine.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/ClearEntityCaches.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CloneValue.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CreateValue.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityAnd.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityCondition.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityCount.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityData.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityOne.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByAnd.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByDate.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByAnd.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByPrimaryKey.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelated.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelatedOne.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeNextSeqId.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeValue.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionCommit.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionRollback.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ClearField.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToEnv.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/EnvToField.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToEnv.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToField.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FieldToList.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/FirstFromList.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/IterateMap.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ListToList.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Loop.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/MapToMap.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/OrderMapList.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetCalendar.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringAppend.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToField.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/StringToList.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/ToString.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToRequest.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/FieldToSession.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/RequestParametersToList.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/RequestToField.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/SessionToField.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/eventops/WebappPropertyToField.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/CheckId.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/CheckPermission.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfCompare.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfCompareField.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfEmpty.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfHasPermission.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfInstanceOf.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfNotEmpty.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfRegexp.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/ifops/IfValidateMethod.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Calculate.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/PropertyToField.java
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/serviceops/FieldToResult.java

Modified: ofbiz/trunk/framework/minilang/build.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/build.xml?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/build.xml (original)
+++ ofbiz/trunk/framework/minilang/build.xml Wed Aug 13 22:55:17 2008
@@ -55,6 +55,7 @@
         <!-- now add the NOTICE and LICENSE files to allow the jar file to be distributed alone -->
         <copy todir="${build.dir}/classes/META-INF">
             <fileset dir="${ofbiz.home.dir}" includes="NOTICE,LICENSE"/>
+            <fileset dir="src/META-INF" includes="**"/>
         </copy>        
     </target>
 

Added: ofbiz/trunk/framework/minilang/src/META-INF/services/org.ofbiz.minilang.method.MethodOperation$Factory
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/META-INF/services/org.ofbiz.minilang.method.MethodOperation%24Factory?rev=685778&view=auto
==============================================================================
--- ofbiz/trunk/framework/minilang/src/META-INF/services/org.ofbiz.minilang.method.MethodOperation$Factory (added)
+++ ofbiz/trunk/framework/minilang/src/META-INF/services/org.ofbiz.minilang.method.MethodOperation$Factory Wed Aug 13 22:55:17 2008
@@ -0,0 +1,88 @@
+org.ofbiz.minilang.method.callops.AddError$AddErrorFactory
+org.ofbiz.minilang.method.callops.CallBsh$CallBshFactory
+org.ofbiz.minilang.method.callops.CallClassMethod$CallClassMethodFactory
+org.ofbiz.minilang.method.callops.CallObjectMethod$CallObjectMethodFactory
+org.ofbiz.minilang.method.callops.CallService$CallServiceFactory
+org.ofbiz.minilang.method.callops.CallServiceAsynch$CallServiceAsynchFactory
+org.ofbiz.minilang.method.callops.CallSimpleMapProcessor$CallSimpleMapProcessorFactory
+org.ofbiz.minilang.method.callops.CallSimpleMethod$CallSimpleMethodFactory
+org.ofbiz.minilang.method.callops.CheckErrors$CheckErrorsFactory
+org.ofbiz.minilang.method.callops.CreateObject$CreateObjectFactory
+org.ofbiz.minilang.method.callops.Return$ReturnFactory
+org.ofbiz.minilang.method.callops.SetServiceFields$SetServiceFieldsFactory
+org.ofbiz.minilang.method.conditional.Assert$AssertFactory
+org.ofbiz.minilang.method.conditional.MasterIf$MasterIfFactory
+org.ofbiz.minilang.method.conditional.While$WhileFactory
+org.ofbiz.minilang.method.entityops.ClearCacheLine$ClearCacheLineFactory
+org.ofbiz.minilang.method.entityops.ClearEntityCaches$ClearEntityCachesFactory
+org.ofbiz.minilang.method.entityops.CloneValue$CloneValueFactory
+org.ofbiz.minilang.method.entityops.CreateValue$CreateValueFactory
+org.ofbiz.minilang.method.entityops.EntityAnd$EntityAndFactory
+org.ofbiz.minilang.method.entityops.EntityCondition$EntityConditionFactory
+org.ofbiz.minilang.method.entityops.EntityCount$EntityCountFactory
+org.ofbiz.minilang.method.entityops.EntityData$EntityDataFactory
+org.ofbiz.minilang.method.entityops.EntityOne$EntityOneFactory
+org.ofbiz.minilang.method.entityops.FilterListByAnd$FilterListByAndFactory
+org.ofbiz.minilang.method.entityops.FilterListByDate$FilterListByDateFactory
+org.ofbiz.minilang.method.entityops.FindByAnd$FindByAndFactory
+org.ofbiz.minilang.method.entityops.FindByPrimaryKey$FindByPrimaryKeyFactory
+org.ofbiz.minilang.method.entityops.GetRelated$GetRelatedFactory
+org.ofbiz.minilang.method.entityops.GetRelatedOne$GetRelatedOneFactory
+org.ofbiz.minilang.method.entityops.MakeNextSeqId$MakeNextSeqIdFactory
+org.ofbiz.minilang.method.entityops.MakeValue$MakeValueFactory
+org.ofbiz.minilang.method.entityops.NowDateToEnv$NowDateToEnvFactory
+org.ofbiz.minilang.method.entityops.NowTimestampToEnv$NowTimestampToEnvFactory
+org.ofbiz.minilang.method.entityops.OrderValueList$OrderValueListFactory
+org.ofbiz.minilang.method.entityops.RefreshValue$RefreshValueFactory
+org.ofbiz.minilang.method.entityops.RemoveByAnd$RemoveByAndFactory
+org.ofbiz.minilang.method.entityops.RemoveList$RemoveListFactory
+org.ofbiz.minilang.method.entityops.RemoveRelated$RemoveRelatedFactory
+org.ofbiz.minilang.method.entityops.RemoveValue$RemoveValueFactory
+org.ofbiz.minilang.method.entityops.SequencedIdToEnv$SequencedIdToEnvFactory
+org.ofbiz.minilang.method.entityops.SetCurrentUserLogin$SetCurrentUserLoginFactory
+org.ofbiz.minilang.method.entityops.SetNonpkFields$SetNonpkFieldsFactory
+org.ofbiz.minilang.method.entityops.SetPkFields$SetPkFieldsFactory
+org.ofbiz.minilang.method.entityops.StoreList$StoreListFactory
+org.ofbiz.minilang.method.entityops.StoreValue$StoreValueFactory
+org.ofbiz.minilang.method.entityops.TransactionBegin$TransactionBeginFactory
+org.ofbiz.minilang.method.entityops.TransactionCommit$TransactionCommitFactory
+org.ofbiz.minilang.method.entityops.TransactionRollback$TransactionRollbackFactory
+org.ofbiz.minilang.method.envops.ClearField$ClearFieldFactory
+org.ofbiz.minilang.method.envops.EnvToEnv$EnvToEnvFactory
+org.ofbiz.minilang.method.envops.EnvToField$EnvToFieldFactory
+org.ofbiz.minilang.method.envops.FieldToEnv$FieldToEnvFactory
+org.ofbiz.minilang.method.envops.FieldToField$FieldToFieldFactory
+org.ofbiz.minilang.method.envops.FieldToList$FieldToListFactory
+org.ofbiz.minilang.method.envops.FirstFromList$FirstFromListFactory
+org.ofbiz.minilang.method.envops.Iterate$IterateFactory
+org.ofbiz.minilang.method.envops.IterateMap$IterateMapFactory
+org.ofbiz.minilang.method.envops.ListToList$ListToListFactory
+org.ofbiz.minilang.method.envops.Loop$LoopFactory
+org.ofbiz.minilang.method.envops.MapToMap$MapToMapFactory
+org.ofbiz.minilang.method.envops.OrderMapList$OrderMapListFactory
+org.ofbiz.minilang.method.envops.SetCalendar$SetCalendarFactory
+org.ofbiz.minilang.method.envops.SetOperation$SetOperationFactory
+org.ofbiz.minilang.method.envops.StringAppend$StringAppendFactory
+org.ofbiz.minilang.method.envops.StringToField$StringToFieldFactory
+org.ofbiz.minilang.method.envops.StringToList$StringToListFactory
+org.ofbiz.minilang.method.envops.ToString$ToStringFactory
+org.ofbiz.minilang.method.eventops.FieldToRequest$FieldToRequestFactory
+org.ofbiz.minilang.method.eventops.FieldToSession$FieldToSessionFactory
+org.ofbiz.minilang.method.eventops.RequestParametersToList$RequestParametersToListFactory
+org.ofbiz.minilang.method.eventops.RequestToField$RequestToFieldFactory
+org.ofbiz.minilang.method.eventops.SessionToField$SessionToFieldFactory
+org.ofbiz.minilang.method.eventops.WebappPropertyToField$WebappPropertyToFieldFactory
+org.ofbiz.minilang.method.ifops.CheckId$CheckIdFactory
+org.ofbiz.minilang.method.ifops.CheckPermission$CheckPermissionFactory
+org.ofbiz.minilang.method.ifops.IfCompare$IfCompareFactory
+org.ofbiz.minilang.method.ifops.IfCompareField$IfCompareFieldFactory
+org.ofbiz.minilang.method.ifops.IfEmpty$IfEmptyFactory
+org.ofbiz.minilang.method.ifops.IfHasPermission$IfHasPermissionFactory
+org.ofbiz.minilang.method.ifops.IfInstanceOf$IfInstanceOfFactory
+org.ofbiz.minilang.method.ifops.IfNotEmpty$IfNotEmptyFactory
+org.ofbiz.minilang.method.ifops.IfRegexp$IfRegexpFactory
+org.ofbiz.minilang.method.ifops.IfValidateMethod$IfValidateMethodFactory
+org.ofbiz.minilang.method.otherops.Calculate$CalculateFactory
+org.ofbiz.minilang.method.otherops.Log$LogFactory
+org.ofbiz.minilang.method.otherops.PropertyToField$PropertyToFieldFactory
+org.ofbiz.minilang.method.serviceops.FieldToResult$FieldToResultFactory

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=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java Wed Aug 13 22:55:17 2008
@@ -20,12 +20,15 @@
 
 import java.net.MalformedURLException;
 import java.net.URL;
+import java.util.Collections;
+import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Set;
 
+import javax.imageio.spi.ServiceRegistry;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
@@ -83,6 +86,16 @@
  * SimpleMethod Mini Language Core Object
  */
 public class SimpleMethod {
+    private static final Map<String, MethodOperation.Factory> methodOperationFactories;
+    static {
+        Map<String, MethodOperation.Factory> mapFactories = new HashMap<String, MethodOperation.Factory>();
+        Iterator<MethodOperation.Factory> it = ServiceRegistry.lookupProviders(MethodOperation.Factory.class, SimpleMethod.class.getClassLoader());
+        while (it.hasNext()) {
+            MethodOperation.Factory factory = it.next();
+            mapFactories.put(factory.getName(), factory);
+        }
+        methodOperationFactories = Collections.unmodifiableMap(mapFactories);
+    }
     
     public static final String module = SimpleMethod.class.getName();
     public static final String err_resource = "MiniLangErrorUiLabels";
@@ -883,194 +896,11 @@
                 String nodeName = curOperElem.getNodeName();
                 MethodOperation methodOp = null;
 
-                if ("call-map-processor".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.CallSimpleMapProcessor(curOperElem, simpleMethod);
-                } else if ("check-errors".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.CheckErrors(curOperElem, simpleMethod);
-                } else if ("add-error".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.AddError(curOperElem, simpleMethod);
-                } else if ("return".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.Return(curOperElem, simpleMethod);
-                } else if ("set-service-fields".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.SetServiceFields(curOperElem, simpleMethod);
-                } else if ("call-service".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.CallService(curOperElem, simpleMethod);
-                } else if ("call-service-asynch".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.CallServiceAsynch(curOperElem, simpleMethod);
-                } else if ("call-bsh".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.CallBsh(curOperElem, simpleMethod);
-                } else if ("call-simple-method".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.CallSimpleMethod(curOperElem, simpleMethod);
-
-                } else if ("call-object-method".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.CallObjectMethod(curOperElem, simpleMethod);
-                } else if ("call-class-method".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.CallClassMethod(curOperElem, simpleMethod);
-                } else if ("create-object".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.callops.CreateObject(curOperElem, simpleMethod);
-                    
-                } else if ("field-to-request".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.eventops.FieldToRequest(curOperElem, simpleMethod);
-                } else if ("field-to-session".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.eventops.FieldToSession(curOperElem, simpleMethod);
-                } else if ("request-to-field".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.eventops.RequestToField(curOperElem, simpleMethod);
-                } else if ("request-parameters-to-list".equals(nodeName)) {
-                    methodOperations.add(new org.ofbiz.minilang.method.eventops.RequestParametersToList(curOperElem, simpleMethod));                    
-                } else if ("session-to-field".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.eventops.SessionToField(curOperElem, simpleMethod);
-                } else if ("webapp-property-to-field".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.eventops.WebappPropertyToField(curOperElem, simpleMethod);
-
-                } else if ("field-to-result".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.serviceops.FieldToResult(curOperElem, simpleMethod);
-
-                } else if ("map-to-map".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.MapToMap(curOperElem, simpleMethod);
-                } else if ("field-to-list".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.FieldToList(curOperElem, simpleMethod);
-                } else if ("list-to-list".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.ListToList(curOperElem, simpleMethod);
-                } else if ("order-map-list".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.OrderMapList(curOperElem, simpleMethod);
-
-                } else if ("set".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.SetOperation(curOperElem, simpleMethod);
-                } else if ("set-calendar".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.SetCalendar(curOperElem, simpleMethod);
-                } else if ("env-to-env".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.EnvToEnv(curOperElem, simpleMethod);
-                } else if ("env-to-field".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.EnvToField(curOperElem, simpleMethod);
-                } else if ("field-to-env".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.FieldToEnv(curOperElem, simpleMethod);
-                } else if ("field-to-field".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.FieldToField(curOperElem, simpleMethod);
-                } else if ("string-to-field".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.StringToField(curOperElem, simpleMethod);
-
-                } else if ("string-append".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.StringAppend(curOperElem, simpleMethod);
-                } else if ("string-to-list".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.StringToList(curOperElem, simpleMethod);
-                } else if ("to-string".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.ToString(curOperElem, simpleMethod);
-                } else if ("clear-field".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.ClearField(curOperElem, simpleMethod);
-                } else if ("iterate".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.Iterate(curOperElem, simpleMethod);
-                } else if ("iterate-map".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.IterateMap(curOperElem, simpleMethod);
-                } else if ("loop".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.Loop(curOperElem, simpleMethod);
-                } else if ("first-from-list".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.envops.FirstFromList(curOperElem, simpleMethod);
-
-                } else if ("transaction-begin".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.TransactionBegin(curOperElem, simpleMethod);
-                } else if ("transaction-commit".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.TransactionCommit(curOperElem, simpleMethod);
-                } else if ("transaction-rollback".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.TransactionRollback(curOperElem, simpleMethod);
-                    
-                } else if ("now-timestamp-to-env".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.NowTimestampToEnv(curOperElem, simpleMethod);
-                } else if ("now-date-to-env".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.NowDateToEnv(curOperElem, simpleMethod);
-                } else if ("sequenced-id-to-env".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.SequencedIdToEnv(curOperElem, simpleMethod);
-                } else if ("make-next-seq-id".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.MakeNextSeqId(curOperElem, simpleMethod);
-                } else if ("set-current-user-login".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.SetCurrentUserLogin(curOperElem, simpleMethod);
-
-                } else if ("find-by-primary-key".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.FindByPrimaryKey(curOperElem, simpleMethod);
-                } else if ("find-by-and".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.FindByAnd(curOperElem, simpleMethod);
-                } else if ("entity-one".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.EntityOne(curOperElem, simpleMethod);
-                } else if ("entity-and".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.EntityAnd(curOperElem, simpleMethod);
-                } else if ("entity-condition".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.EntityCondition(curOperElem, simpleMethod);
-                } else if ("entity-count".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.EntityCount(curOperElem, simpleMethod);
-                } else if ("get-related-one".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.GetRelatedOne(curOperElem, simpleMethod);
-                } else if ("get-related".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.GetRelated(curOperElem, simpleMethod);
-                } else if ("filter-list-by-and".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.FilterListByAnd(curOperElem, simpleMethod);
-                } else if ("filter-list-by-date".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.FilterListByDate(curOperElem, simpleMethod);
-                } else if ("order-value-list".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.OrderValueList(curOperElem, simpleMethod);
-
-                } else if ("make-value".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.MakeValue(curOperElem, simpleMethod);
-                } else if ("clone-value".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.CloneValue(curOperElem, simpleMethod);
-                } else if ("create-value".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.CreateValue(curOperElem, simpleMethod);
-                } else if ("store-value".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.StoreValue(curOperElem, simpleMethod);
-                } else if ("refresh-value".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.RefreshValue(curOperElem, simpleMethod);
-                } else if ("remove-value".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.RemoveValue(curOperElem, simpleMethod);
-                } else if ("remove-related".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.RemoveRelated(curOperElem, simpleMethod);
-                } else if ("remove-by-and".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.RemoveByAnd(curOperElem, simpleMethod);
-                } else if ("clear-cache-line".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.ClearCacheLine(curOperElem, simpleMethod);
-                } else if ("clear-entity-caches".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.ClearEntityCaches(curOperElem, simpleMethod);
-                } else if ("set-pk-fields".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.SetPkFields(curOperElem, simpleMethod);
-                } else if ("set-nonpk-fields".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.SetNonpkFields(curOperElem, simpleMethod);
-
-                } else if ("store-list".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.StoreList(curOperElem, simpleMethod);
-                } else if ("remove-list".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.entityops.RemoveList(curOperElem, simpleMethod);
-
-                } else if ("assert".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.conditional.Assert(curOperElem, simpleMethod);
-                } else if ("if".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.conditional.MasterIf(curOperElem, simpleMethod);
-                } else if ("while".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.conditional.While(curOperElem, simpleMethod);
-                } else if ("if-validate-method".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.ifops.IfValidateMethod(curOperElem, simpleMethod);
-                } else if ("if-instance-of".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.ifops.IfInstanceOf(curOperElem, simpleMethod);
-                } else if ("if-compare".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.ifops.IfCompare(curOperElem, simpleMethod);
-                } else if ("if-compare-field".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.ifops.IfCompareField(curOperElem, simpleMethod);
-                } else if ("if-regexp".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.ifops.IfRegexp(curOperElem, simpleMethod);
-                } else if ("if-empty".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.ifops.IfEmpty(curOperElem, simpleMethod);
-                } else if ("if-not-empty".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.ifops.IfNotEmpty(curOperElem, simpleMethod);
-                } else if ("if-has-permission".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.ifops.IfHasPermission(curOperElem, simpleMethod);
-                } else if ("check-permission".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.ifops.CheckPermission(curOperElem, simpleMethod);
-                } else if ("check-id".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.ifops.CheckId(curOperElem, simpleMethod);
+                MethodOperation.Factory factory = methodOperationFactories.get(nodeName);
+                if (factory != null) {
+                    methodOp = factory.createMethodOperation(curOperElem, simpleMethod);
                 } else if ("else".equals(nodeName)) {
                     // don't add anything, but don't complain either, this one is handled in the individual operations
-                } else if ("property-to-field".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.otherops.PropertyToField(curOperElem, simpleMethod);
-                } else if ("calculate".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.otherops.Calculate(curOperElem, simpleMethod);
-                } else if ("log".equals(nodeName)) {
-                    methodOp = new org.ofbiz.minilang.method.otherops.Log(curOperElem, simpleMethod);
                 } else {
                     Debug.logWarning("Operation element \"" + nodeName + "\" no recognized", module);
                 }

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/MethodOperation.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/MethodOperation.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/MethodOperation.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/MethodOperation.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,11 @@
  * A single operation, does the specified operation on the given field
  */
 public abstract class MethodOperation {
+    public interface Factory<M extends MethodOperation> {
+        M createMethodOperation(Element element, SimpleMethod simpleMethod);
+        String getName();
+    }
+
     @Retention(RetentionPolicy.RUNTIME)
     @Target(ElementType.TYPE)
     public @interface DeprecatedOperation {

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/AddError.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/AddError.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/AddError.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/AddError.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Adds the fail-message or fail-property value to the error-list.
  */
 public class AddError extends MethodOperation {
+    public static final class AddErrorFactory implements Factory<AddError> {
+        public AddError createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new AddError(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "add-error";
+        }
+    }
     String message = null;
     String propertyResource = null;
     boolean isProperty = false;

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java Wed Aug 13 22:55:17 2008
@@ -34,6 +34,15 @@
  * Simple class to wrap messages that come either from a straight string or a properties file
  */
 public class CallBsh extends MethodOperation {
+    public static final class CallBshFactory implements Factory<CallBsh> {
+        public CallBsh createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CallBsh(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "call-bsh";
+        }
+    }
     
     public static final String module = CallBsh.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallClassMethod.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallClassMethod.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallClassMethod.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallClassMethod.java Wed Aug 13 22:55:17 2008
@@ -33,6 +33,15 @@
  * Calls a Java class method using the given fields as parameters
  */
 public class CallClassMethod extends MethodOperation {
+    public static final class CallClassMethodFactory implements Factory<CallClassMethod> {
+        public CallClassMethod createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CallClassMethod(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "call-class-method";
+        }
+    }
     
     public static final String module = CallClassMethod.class.getName();
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallObjectMethod.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallObjectMethod.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallObjectMethod.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallObjectMethod.java Wed Aug 13 22:55:17 2008
@@ -34,6 +34,15 @@
  * Calls a Java object method using the given fields as parameters
  */
 public class CallObjectMethod extends MethodOperation {
+    public static final class CallObjectMethodFactory implements Factory<CallObjectMethod> {
+        public CallObjectMethod createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CallObjectMethod(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "call-object-method";
+        }
+    }
     
     public static final String module = CallClassMethod.class.getName();
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallService.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallService.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallService.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallService.java Wed Aug 13 22:55:17 2008
@@ -47,6 +47,15 @@
  * Calls a service using the given parameters
  */
 public class CallService extends MethodOperation {
+    public static final class CallServiceFactory implements Factory<CallService> {
+        public CallService createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CallService(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "call-service";
+        }
+    }
     
     public static final String module = CallService.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallServiceAsynch.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallServiceAsynch.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallServiceAsynch.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallServiceAsynch.java Wed Aug 13 22:55:17 2008
@@ -36,6 +36,15 @@
  * Calls a service using the given parameters
  */
 public class CallServiceAsynch extends MethodOperation {
+    public static final class CallServiceAsynchFactory implements Factory<CallServiceAsynch> {
+        public CallServiceAsynch createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CallServiceAsynch(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "call-service-asynch";
+        }
+    }
     
     public static final String module = CallServiceAsynch.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallSimpleMapProcessor.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallSimpleMapProcessor.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallSimpleMapProcessor.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallSimpleMapProcessor.java Wed Aug 13 22:55:17 2008
@@ -33,6 +33,15 @@
  * An event operation that calls a simple map processor inlined or from a separate file
  */
 public class CallSimpleMapProcessor extends MethodOperation {
+    public static final class CallSimpleMapProcessorFactory implements Factory<CallSimpleMapProcessor> {
+        public CallSimpleMapProcessor createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CallSimpleMapProcessor(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "call-map-processor";
+        }
+    }
     
     String xmlResource;
     String processorName;

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallSimpleMethod.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallSimpleMethod.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallSimpleMethod.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallSimpleMethod.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * An operation that calls a simple method in the same, or from another, file
  */
 public class CallSimpleMethod extends MethodOperation {
+    public static final class CallSimpleMethodFactory implements Factory<CallSimpleMethod> {
+        public CallSimpleMethod createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CallSimpleMethod(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "call-simple-method";
+        }
+    }
     
     public static final String module = CallSimpleMethod.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CheckErrors.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CheckErrors.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CheckErrors.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CheckErrors.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * An event operation that checks a message list and may introduce a return code and stop the event
  */
 public class CheckErrors extends MethodOperation {
+    public static final class CheckErrorsFactory implements Factory<CheckErrors> {
+        public CheckErrors createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CheckErrors(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "check-errors";
+        }
+    }
     
     ContextAccessor<List<Object>> errorListAcsr;
     String errorCode;

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CreateObject.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CreateObject.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CreateObject.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CreateObject.java Wed Aug 13 22:55:17 2008
@@ -34,6 +34,15 @@
  * Creates a Java object using the given fields as parameters
  */
 public class CreateObject extends MethodOperation {
+    public static final class CreateObjectFactory implements Factory<CreateObject> {
+        public CreateObject createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CreateObject(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "create-object";
+        }
+    }
     
     public static final String module = CreateObject.class.getName();
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/Return.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/Return.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/Return.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/Return.java Wed Aug 13 22:55:17 2008
@@ -27,6 +27,15 @@
  * An event operation that returns the given response code
  */
 public class Return extends MethodOperation {
+    public static final class ReturnFactory implements Factory<Return> {
+        public Return createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new Return(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "return";
+        }
+    }
     
     String responseCode;
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/SetServiceFields.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/SetServiceFields.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/SetServiceFields.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/SetServiceFields.java Wed Aug 13 22:55:17 2008
@@ -44,6 +44,15 @@
  * Sets all Service parameters/attributes in the to-map using the map as a source
  */
 public class SetServiceFields extends MethodOperation {
+    public static final class SetServiceFieldsFactory implements Factory<SetServiceFields> {
+        public SetServiceFields createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new SetServiceFields(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "set-service-fields";
+        }
+    }
     
     public static final String module = CallService.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/Assert.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/Assert.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/Assert.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/Assert.java Wed Aug 13 22:55:17 2008
@@ -36,6 +36,15 @@
  * Operation used to check each sub-condition independently and for each one that fails (does not evaluate to true), adds an error to the error message list.
  */
 public class Assert extends MethodOperation {
+    public static final class AssertFactory implements Factory<Assert> {
+        public Assert createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new Assert(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "assert";
+        }
+    }
 
     public static final String module = Assert.class.getName();
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/MasterIf.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/MasterIf.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/MasterIf.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/MasterIf.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Represents the top-level element and only mounted operation for the more flexible if structure.
  */
 public class MasterIf extends MethodOperation {
+    public static final class MasterIfFactory implements Factory<MasterIf> {
+        public MasterIf createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new MasterIf(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "if";
+        }
+    }
 
     Conditional condition;
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/While.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/While.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/While.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/conditional/While.java Wed Aug 13 22:55:17 2008
@@ -33,6 +33,15 @@
  * Continually processes sub-ops while the condition remains true
  */
 public class While extends MethodOperation {
+    public static final class WhileFactory implements Factory<While> {
+        public While createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new While(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "while";
+        }
+    }
 
     Conditional condition;
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/ClearCacheLine.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/ClearCacheLine.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/ClearCacheLine.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/ClearCacheLine.java Wed Aug 13 22:55:17 2008
@@ -30,6 +30,15 @@
  *  the map passed to see if it is a byPrimaryKey, and byAnd, or an all.
  */
 public class ClearCacheLine extends MethodOperation {
+    public static final class ClearCacheLineFactory implements Factory<ClearCacheLine> {
+        public ClearCacheLine createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new ClearCacheLine(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "clear-cache-line";
+        }
+    }
     
     public static final String module = ClearCacheLine.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/ClearEntityCaches.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/ClearEntityCaches.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/ClearEntityCaches.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/ClearEntityCaches.java Wed Aug 13 22:55:17 2008
@@ -27,6 +27,15 @@
  * Clears all Entity Engine Caches
  */
 public class ClearEntityCaches extends MethodOperation {
+    public static final class ClearEntityCachesFactory implements Factory<ClearEntityCaches> {
+        public ClearEntityCaches createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new ClearEntityCaches(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "clear-entity-caches";
+        }
+    }
 
     public ClearEntityCaches(Element element, SimpleMethod simpleMethod) {
         super(element, simpleMethod);

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CloneValue.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CloneValue.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CloneValue.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CloneValue.java Wed Aug 13 22:55:17 2008
@@ -30,6 +30,15 @@
  * Uses the delegator to find entity values by anding the map fields
  */
 public class CloneValue extends MethodOperation {
+    public static final class CloneValueFactory implements Factory<CloneValue> {
+        public CloneValue createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CloneValue(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "clone-value";
+        }
+    }
     
     public static final String module = CloneValue.class.getName();        
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CreateValue.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CreateValue.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CreateValue.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/CreateValue.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Uses the delegator to create the specified value object entity in the datasource
  */
 public class CreateValue extends MethodOperation {
+    public static final class CreateValueFactory implements Factory<CreateValue> {
+        public CreateValue createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new CreateValue(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "create-value";
+        }
+    }
     
     public static final String module = CreateValue.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityAnd.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityAnd.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityAnd.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityAnd.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Uses the delegator to find entity values by a condition
  */
 public class EntityAnd extends MethodOperation {
+    public static final class EntityAndFactory implements Factory<EntityAnd> {
+        public EntityAnd createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new EntityAnd(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "entity-and";
+        }
+    }
     
     public static final String module = EntityAnd.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityCondition.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityCondition.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityCondition.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityCondition.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Uses the delegator to find entity values by a condition
  */
 public class EntityCondition extends MethodOperation {
+    public static final class EntityConditionFactory implements Factory<EntityCondition> {
+        public EntityCondition createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new EntityCondition(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "entity-condition";
+        }
+    }
     
     public static final String module = EntityCondition.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityCount.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityCount.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityCount.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityCount.java Wed Aug 13 22:55:17 2008
@@ -40,6 +40,15 @@
  * Uses the delegator to find entity values by a condition
  */
 public class EntityCount extends MethodOperation {
+    public static final class EntityCountFactory implements Factory<EntityCount> {
+        public EntityCount createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new EntityCount(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "entity-count";
+        }
+    }
     
     public static final String module = EntityCount.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityData.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityData.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityData.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityData.java Wed Aug 13 22:55:17 2008
@@ -41,6 +41,16 @@
  * Uses the delegator to find entity values by a primary key
  */
 public class EntityData extends MethodOperation {
+    public static final class EntityDataFactory implements Factory<EntityData> {
+        public EntityData createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new EntityData(element, simpleMethod);
+        }
+
+        public String getName() {
+            // FIXME: not in SimpleMethod
+            return "entity-data";
+        }
+    }
     
     public static final String module = EntityData.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityOne.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityOne.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityOne.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/EntityOne.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Uses the delegator to find entity values by a primary key
  */
 public class EntityOne extends MethodOperation {
+    public static final class EntityOneFactory implements Factory<EntityOne> {
+        public EntityOne createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new EntityOne(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "entity-one";
+        }
+    }
     
     public static final String module = EntityOne.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByAnd.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByAnd.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByAnd.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByAnd.java Wed Aug 13 22:55:17 2008
@@ -33,6 +33,15 @@
  * Uses the delegator to find entity values by anding the map fields
  */
 public class FilterListByAnd extends MethodOperation {
+    public static final class FilterListByAndFactory implements Factory<FilterListByAnd> {
+        public FilterListByAnd createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new FilterListByAnd(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "filter-list-by-and";
+        }
+    }
     
     ContextAccessor<List<GenericEntity>> listAcsr;
     ContextAccessor<List<GenericEntity>> toListAcsr;

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByDate.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByDate.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByDate.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FilterListByDate.java Wed Aug 13 22:55:17 2008
@@ -35,6 +35,15 @@
  * Uses the delegator to find entity values by anding the map fields
  */
 public class FilterListByDate extends MethodOperation {
+    public static final class FilterListByDateFactory implements Factory<FilterListByDate> {
+        public FilterListByDate createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new FilterListByDate(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "filter-list-by-date";
+        }
+    }
     
     ContextAccessor<List<GenericEntity>> listAcsr;
     ContextAccessor<List<GenericEntity>> toListAcsr;

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByAnd.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByAnd.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByAnd.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByAnd.java Wed Aug 13 22:55:17 2008
@@ -38,6 +38,15 @@
  * Uses the delegator to find entity values by anding the map fields
  */
 public class FindByAnd extends MethodOperation {
+    public static final class FindByAndFactory implements Factory<FindByAnd> {
+        public FindByAnd createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new FindByAnd(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "find-by-and";
+        }
+    }
     
     public static final String module = FindByAnd.class.getName();        
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByPrimaryKey.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByPrimaryKey.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByPrimaryKey.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/FindByPrimaryKey.java Wed Aug 13 22:55:17 2008
@@ -39,6 +39,15 @@
  * Uses the delegator to find an entity value by its primary key
  */
 public class FindByPrimaryKey extends MethodOperation {
+    public static final class FindByPrimaryKeyFactory implements Factory<FindByPrimaryKey> {
+        public FindByPrimaryKey createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new FindByPrimaryKey(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "find-by-primary-key";
+        }
+    }
     
     public static final String module = FindByPrimaryKey.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelated.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelated.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelated.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelated.java Wed Aug 13 22:55:17 2008
@@ -34,6 +34,15 @@
  * Gets a list of related entity instance according to the specified relation-name
  */
 public class GetRelated extends MethodOperation {
+    public static final class GetRelatedFactory implements Factory<GetRelated> {
+        public GetRelated createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new GetRelated(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "get-related";
+        }
+    }
     
     public static final String module = GetRelated.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelatedOne.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelatedOne.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelatedOne.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/GetRelatedOne.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Gets a list of related entity instance according to the specified relation-name
  */
 public class GetRelatedOne extends MethodOperation {
+    public static final class GetRelatedOneFactory implements Factory<GetRelatedOne> {
+        public GetRelatedOne createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new GetRelatedOne(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "get-related-one";
+        }
+    }
     
     public static final String module = GetRelatedOne.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeNextSeqId.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeNextSeqId.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeNextSeqId.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeNextSeqId.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Look at existing values for a sub-entity with a sequenced secondary ID, and get the highest plus 1
  */
 public class MakeNextSeqId extends MethodOperation {
+    public static final class MakeNextSeqIdFactory implements Factory<MakeNextSeqId> {
+        public MakeNextSeqId createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new MakeNextSeqId(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "make-next-seq-id";
+        }
+    }
 
     public static final String module = MakeNextSeqId.class.getName();
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeValue.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeValue.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeValue.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/MakeValue.java Wed Aug 13 22:55:17 2008
@@ -29,6 +29,15 @@
  * Uses the delegator to find entity values by anding the map fields
  */
 public class MakeValue extends MethodOperation {
+    public static final class MakeValueFactory implements Factory<MakeValue> {
+        public MakeValue createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new MakeValue(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "make-value";
+        }
+    }
     
     ContextAccessor<GenericValue> valueAcsr;
     String entityName;

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowDateToEnv.java Wed Aug 13 22:55:17 2008
@@ -27,6 +27,15 @@
  * Creates a java.sql.Date with the current date and puts it in the env
  */
 public class NowDateToEnv extends MethodOperation {
+    public static final class NowDateToEnvFactory implements Factory<NowDateToEnv> {
+        public NowDateToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new NowDateToEnv(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "now-date-to-env";
+        }
+    }
     
     ContextAccessor<java.sql.Date> envAcsr;
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/NowTimestampToEnv.java Wed Aug 13 22:55:17 2008
@@ -27,6 +27,15 @@
  * Creates a java.sql.Timestamp with the current date/time in it and puts it in the env
  */
 public class NowTimestampToEnv extends MethodOperation {
+    public static final class NowTimestampToEnvFactory implements Factory<NowTimestampToEnv> {
+        public NowTimestampToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new NowTimestampToEnv(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "now-timestamp-to-env";
+        }
+    }
     
     ContextAccessor<java.sql.Timestamp> envAcsr;
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/OrderValueList.java Wed Aug 13 22:55:17 2008
@@ -32,6 +32,15 @@
  * Order the given list of GenericValue objects
  */
 public class OrderValueList extends MethodOperation {
+    public static final class OrderValueListFactory implements Factory<OrderValueList> {
+        public OrderValueList createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new OrderValueList(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "order-value-list";
+        }
+    }
     
     ContextAccessor<List<? extends GenericEntity>> listAcsr;
     ContextAccessor<List<? extends GenericEntity>> toListAcsr;

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RefreshValue.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Uses the delegator to refresh the specified value object entity from the datasource
  */
 public class RefreshValue extends MethodOperation {
+    public static final class RefreshValueFactory implements Factory<RefreshValue> {
+        public RefreshValue createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new RefreshValue(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "refresh-value";
+        }
+    }
     
     public static final String module = RemoveValue.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveByAnd.java Wed Aug 13 22:55:17 2008
@@ -32,6 +32,15 @@
  * Uses the delegator to remove entity values constrained by anding the map fields
  */
 public class RemoveByAnd extends MethodOperation {
+    public static final class RemoveByAndFactory implements Factory<RemoveByAnd> {
+        public RemoveByAnd createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new RemoveByAnd(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "remove-by-and";
+        }
+    }
     
     public static final String module = RemoveByAnd.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveList.java Wed Aug 13 22:55:17 2008
@@ -33,6 +33,15 @@
  * Uses the delegator to remove the specified value object (or psuedo-pk) list from the datasource
  */
 public class RemoveList extends MethodOperation {
+    public static final class RemoveListFactory implements Factory<RemoveList> {
+        public RemoveList createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new RemoveList(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "remove-list";
+        }
+    }
     
     public static final String module = RemoveList.class.getName();
 

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveRelated.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Uses the delegator to remove entities related to the specified value object from the datasource
  */
 public class RemoveRelated extends MethodOperation {
+    public static final class RemoveRelatedFactory implements Factory<RemoveRelated> {
+        public RemoveRelated createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new RemoveRelated(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "remove-related";
+        }
+    }
     
     public static final String module = RemoveRelated.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/RemoveValue.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Uses the delegator to remove the specified value object entity from the datasource
  */
 public class RemoveValue extends MethodOperation {
+    public static final class RemoveValueFactory implements Factory<RemoveValue> {
+        public RemoveValue createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new RemoveValue(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "remove-value";
+        }
+    }
     
     public static final String module = RemoveValue.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SequencedIdToEnv.java Wed Aug 13 22:55:17 2008
@@ -29,6 +29,15 @@
  * Gets a sequenced ID from the delegator and puts it in the env
  */
 public class SequencedIdToEnv extends MethodOperation {
+    public static final class SequencedIdToEnvFactory implements Factory<SequencedIdToEnv> {
+        public SequencedIdToEnv createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new SequencedIdToEnv(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "sequenced-id-to-env";
+        }
+    }
     
     String seqName;
     ContextAccessor<Object> envAcsr;

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetCurrentUserLogin.java Wed Aug 13 22:55:17 2008
@@ -30,6 +30,15 @@
  * Uses the delegator to create the specified value object entity in the datasource
  */
 public class SetCurrentUserLogin extends MethodOperation {
+    public static final class SetCurrentUserLoginFactory implements Factory<SetCurrentUserLogin> {
+        public SetCurrentUserLogin createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new SetCurrentUserLogin(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "set-current-user-login";
+        }
+    }
     
     public static final String module = SetCurrentUserLogin.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetNonpkFields.java Wed Aug 13 22:55:17 2008
@@ -32,6 +32,15 @@
  * Looks for each non-PK field in the named map and if it exists there it will copy it into the named value object.
  */
 public class SetNonpkFields extends MethodOperation {
+    public static final class SetNonpkFieldsFactory implements Factory<SetNonpkFields> {
+        public SetNonpkFields createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new SetNonpkFields(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "set-nonpk-fields";
+        }
+    }
     
     public static final String module = SetNonpkFields.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/SetPkFields.java Wed Aug 13 22:55:17 2008
@@ -32,6 +32,15 @@
  * Looks for each PK field in the named map and if it exists there it will copy it into the named value object.
  */
 public class SetPkFields extends MethodOperation {
+    public static final class SetPkFieldsFactory implements Factory<SetPkFields> {
+        public SetPkFields createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new SetPkFields(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "set-pk-fields";
+        }
+    }
     
     public static final String module = SetPkFields.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreList.java Wed Aug 13 22:55:17 2008
@@ -33,6 +33,15 @@
  * Uses the delegator to store the specified value object list in the datasource
  */
 public class StoreList extends MethodOperation {
+    public static final class StoreListFactory implements Factory<StoreList> {
+        public StoreList createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new StoreList(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "store-list";
+        }
+    }
     
     public static final String module = StoreList.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/StoreValue.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Uses the delegator to store the specified value object entity in the datasource
  */
 public class StoreValue extends MethodOperation {
+    public static final class StoreValueFactory implements Factory<StoreValue> {
+        public StoreValue createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new StoreValue(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "store-value";
+        }
+    }
     
     public static final String module = StoreValue.class.getName();
     

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java?rev=685778&r1=685777&r2=685778&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/entityops/TransactionBegin.java Wed Aug 13 22:55:17 2008
@@ -31,6 +31,15 @@
  * Begins a transaction if one is not already in place; if does begin one puts true in the began-transaction-name env variable, otherwise it returns false.
  */
 public class TransactionBegin extends MethodOperation {
+    public static final class TransactionBeginFactory implements Factory<TransactionBegin> {
+        public TransactionBegin createMethodOperation(Element element, SimpleMethod simpleMethod) {
+            return new TransactionBegin(element, simpleMethod);
+        }
+
+        public String getName() {
+            return "transaction-begin";
+        }
+    }
     
     public static final String module = TransactionBegin.class.getName();