]> source.dussan.org Git - aspectj.git/commitdiff
isCacheable method
authoraclement <aclement>
Thu, 12 Nov 2009 22:12:59 +0000 (22:12 +0000)
committeraclement <aclement>
Thu, 12 Nov 2009 22:12:59 +0000 (22:12 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/AbstractReferenceTypeDelegate.java
org.aspectj.matcher/src/org/aspectj/weaver/ReferenceTypeDelegate.java

index d7ee73b62153bbcaf43d0d261639a61f32cf1486..454771cc5a5827f030649af80ec224d6d8bdf1ea 100644 (file)
@@ -41,6 +41,10 @@ public abstract class AbstractReferenceTypeDelegate implements ReferenceTypeDele
                return !isAspect() && !isInterface();
        }
 
+       public boolean isCacheable() {
+               return false;
+       }
+
        /**
         * Designed to be overriden by EclipseType to disable collection of shadow mungers during pre-weave compilation phase
         */
index 6868a095215c6c6ce085f2a89f681bdc8c5f84c2..d16e0b364a0ad12bd3b37aab2bcb8a6d87642b2d 100644 (file)
@@ -115,4 +115,11 @@ public interface ReferenceTypeDelegate {
 
        public boolean copySourceContext();
 
+       /**
+        * TODO Caching of methods besides getDeclaredInterfaces() may also be dependent on this flag - which?
+        * 
+        * @return true if something the result of getDeclaredInterfaces() can be cached by the caller
+        */
+       public boolean isCacheable();
+
 }
\ No newline at end of file