]>
git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.detached/src/main/java/org/argeo/slc/detached/DetachedContextImpl.java
1 package org
.argeo
.slc
.detached
;
3 import java
.util
.ArrayList
;
6 import java
.util
.TreeMap
;
7 import java
.util
.Vector
;
9 public class DetachedContextImpl
implements DetachedContext
{
10 private List executedPaths
= new Vector();
11 private String currentPath
;
12 private Map dynamicRefs
= new TreeMap();
14 public String
getCurrentPath() {
18 public void setDynamicRef(String ref
, Object obj
) {
19 dynamicRefs
.put(ref
, obj
);
22 public Object
getDynamicRef(String ref
) {
23 if (dynamicRefs
.containsKey(ref
))
24 return dynamicRefs
.get(ref
);
29 public List
getExecutedPaths() {
30 return new ArrayList(executedPaths
);
33 public String
toString() {
34 StringBuffer buf
= new StringBuffer(getClass().getName());
35 buf
.append(" currentPath=").append(currentPath
);
36 buf
.append(" executedPaths=").append(executedPaths
);
37 return buf
.toString();