]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.simple/src/main/java/org/argeo/slc/core/execution/MapExecutionContext.java
Introduce system calls
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / java / org / argeo / slc / core / execution / MapExecutionContext.java
index 8c69d7c62c9cf74277105edcd74b67e900b862d4..c985fd1dc7a5d5c2a432f9fe19b45e6cbd75a419 100644 (file)
@@ -24,10 +24,6 @@ public class MapExecutionContext implements ExecutionContext {
        private final Map<String, Object> variables = new HashMap<String, Object>();
 
        private final String uuid = UUID.randomUUID().toString();
-
-/*     public Map<String, Object> getVariables() {
-               return variables;
-       }*/
        
        public void addVariables(Map<? extends String, ? extends Object> variablesToAdd) {
                variables.putAll(variablesToAdd);
@@ -63,7 +59,7 @@ public class MapExecutionContext implements ExecutionContext {
                return obj;
        }
 
-       protected Object findVariable(String key) {
+       public Object findVariable(String key) {
                Object obj = null;
                
                // Look if the variable is set in the global execution variables
@@ -107,16 +103,6 @@ public class MapExecutionContext implements ExecutionContext {
                leftEf.getLocalVariables().clear();
 
        }
-
-/*     public Object findOrAddScopedObject(String name, ObjectFactory objectFactory) {
-               Object obj = findScopedObject(name);
-               if (obj == null) {
-                       obj = objectFactory.getObject();
-                       stack.peek().getScopedObjects().put(name, obj);
-               }
-               return obj;
-       }*/
-
        
        public void addScopedObject(String name, Object obj) {
                //TODO: check that the object is not set yet ?