diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java @ 692:22e4bffbe240 facets-slt

Generated facets for each output aspect. flys-artifacts/branches/facets-slt@2132 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 16 Jun 2011 10:05:44 +0000
parents 2600aa2c7319
children af393c5eb2c8
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java	Thu Jun 16 09:04:59 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/FLYSArtifact.java	Thu Jun 16 10:05:44 2011 +0000
@@ -1082,11 +1082,12 @@
             return null;
         }
 
-        return compute(hash, callback, type);
+        return compute(context, hash, callback, type);
     }
 
 
     public Object compute(
+        CallContext     context,
         String          key,
         ComputeCallback callback,
         ComputeType     type)
@@ -1102,10 +1103,10 @@
         if (cache == null) {
             switch (type) {
                 case FEED:
-                    return callback.computeFeed(fs);
+                    return callback.computeFeed(context, fs);
 
                 case ADVANCE:
-                    return callback.computeAdvance(fs);
+                    return callback.computeAdvance(context, fs);
             }
         }
 
@@ -1118,11 +1119,11 @@
         Object result = null;
         switch (type) {
             case FEED:
-                result = callback.computeFeed(fs);
+                result = callback.computeFeed(context, fs);
                 break;
 
             case ADVANCE:
-                result = callback.computeAdvance(fs);
+                result = callback.computeAdvance(context, fs);
         }
 
         if (result != null) {

http://dive4elements.wald.intevation.org