You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2014/03/20 14:52:37 UTC

svn commit: r1579625 - /pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/ApplicationContext.java

Author: smartini
Date: Thu Mar 20 13:52:36 2014
New Revision: 1579625

URL: http://svn.apache.org/r1579625
Log:
add utility method to be able to get number of elements of resource cache (at least for diagnostic purposes)

Modified:
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/ApplicationContext.java

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/ApplicationContext.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/ApplicationContext.java?rev=1579625&r1=1579624&r2=1579625&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/ApplicationContext.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/ApplicationContext.java Thu Mar 20 13:52:36 2014
@@ -1601,6 +1601,10 @@ public abstract class ApplicationContext
                 }
             };
         }
+
+        public synchronized int getCount() {
+            return resourceCache.getCount();
+        }
     }
 
     /**