[jbosscache-commits] JBoss Cache SVN: r5644 - core/trunk/src/main/java/org/jboss/cache/interceptors.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Wed Apr 23 09:11:41 EDT 2008


Author: manik.surtani at jboss.com
Date: 2008-04-23 09:11:40 -0400 (Wed, 23 Apr 2008)
New Revision: 5644

Modified:
   core/trunk/src/main/java/org/jboss/cache/interceptors/Interceptor.java
Log:
Updated

Modified: core/trunk/src/main/java/org/jboss/cache/interceptors/Interceptor.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/interceptors/Interceptor.java	2008-04-23 11:46:31 UTC (rev 5643)
+++ core/trunk/src/main/java/org/jboss/cache/interceptors/Interceptor.java	2008-04-23 13:11:40 UTC (rev 5644)
@@ -76,7 +76,6 @@
     */
    public Object invoke(InvocationContext ctx) throws Throwable
    {
-      //return next.invoke(ctx);
       return handleDefault(ctx, null);
    }
 
@@ -85,15 +84,16 @@
     */
    public Object nextInterceptor(InvocationContext ctx) throws Throwable
    {
-//      return getNext().invoke(ctx);
       return invokeNextInterceptor(ctx, null);
    }
 
+   @Override
    public boolean getStatisticsEnabled()
    {
       return statsEnabled;
    }
 
+   @Override
    public void setStatisticsEnabled(boolean enabled)
    {
       statsEnabled = enabled;
@@ -103,6 +103,7 @@
     * This implementation returns an empty Map.  If individual Interceptors wish to expose statistics, they can override this
     * method.
     */
+   @Override
    public Map<String, Object> dumpStatistics()
    {
       return Collections.emptyMap();
@@ -112,10 +113,12 @@
     * This implementation is a no-op.  If individual Interceptors wish to expose statistics, they can override this
     * method.
     */
+   @Override
    public void resetStatistics()
    {
    }
 
+   @Override
    public String toString()
    {
       return getClass().getName()
@@ -159,6 +162,7 @@
 //      return n;
    }
 
+   @Override
    public Object handleDefault(InvocationContext ctx, CacheCommand command) throws Throwable
    {
       if (command != null) //call originated from a command's accept() method.




More information about the jbosscache-commits mailing list