summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/utils/DescriptionObjectCache.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2013-10-25 17:27:29 +0200
committerAndrew Branson <andrew.branson@cern.ch>2013-10-25 17:27:29 +0200
commit0f892332b19ba8741a7db66a5c4daa386b2b5c1e (patch)
treeed0733ed83862bf3bae1aa1c2cccec4d266e4813 /src/main/java/com/c2kernel/utils/DescriptionObjectCache.java
parentcf28baaf82d0941f938444bda5b39440b944ddfb (diff)
Changes and refactoring to gui requirements
Used descriptions must use an integer version.
Diffstat (limited to 'src/main/java/com/c2kernel/utils/DescriptionObjectCache.java')
-rw-r--r--src/main/java/com/c2kernel/utils/DescriptionObjectCache.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/utils/DescriptionObjectCache.java b/src/main/java/com/c2kernel/utils/DescriptionObjectCache.java
index a8cd197..d5382da 100644
--- a/src/main/java/com/c2kernel/utils/DescriptionObjectCache.java
+++ b/src/main/java/com/c2kernel/utils/DescriptionObjectCache.java
@@ -15,7 +15,7 @@ public abstract class DescriptionObjectCache<D extends DescriptionObject> {
SoftCache<String, CacheEntry<D>> cache = new SoftCache<String, CacheEntry<D>>();
- public D get(String name, String version) throws ObjectNotFoundException, InvalidDataException {
+ public D get(String name, int version) throws ObjectNotFoundException, InvalidDataException {
D thisDef;
synchronized(cache) {
CacheEntry<D> thisDefEntry = cache.get(name+"_"+version);
@@ -35,7 +35,7 @@ public abstract class DescriptionObjectCache<D extends DescriptionObject> {
public abstract String getDefRoot();
- public abstract D loadObject(String name, String version, ItemProxy proxy) throws ObjectNotFoundException, InvalidDataException;
+ public abstract D loadObject(String name, int version, ItemProxy proxy) throws ObjectNotFoundException, InvalidDataException;
public void removeAct(String id) {
synchronized(cache) {