[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/optimistic ...

Manik Surtani manik at jboss.org
Wed May 23 11:22:04 EDT 2007


  User: msurtani
  Date: 07/05/23 11:22:04

  Modified:    tests/functional/org/jboss/cache/optimistic  
                        MockFailureInterceptor.java MockInterceptor.java
  Log:
  Performance enhancements, including a new invoke() signature for Interceptor
  
  Revision  Changes    Path
  1.5       +55 -53    JBossCache/tests/functional/org/jboss/cache/optimistic/MockFailureInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MockFailureInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/optimistic/MockFailureInterceptor.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- MockFailureInterceptor.java	25 Aug 2006 14:10:10 -0000	1.4
  +++ MockFailureInterceptor.java	23 May 2007 15:22:04 -0000	1.5
  @@ -1,6 +1,7 @@
   package org.jboss.cache.optimistic;
   
   import org.jboss.cache.CacheSPI;
  +import org.jboss.cache.InvocationContext;
   import org.jboss.cache.interceptors.Interceptor;
   import org.jboss.cache.marshall.MethodCall;
   
  @@ -28,8 +29,9 @@
       private List allCalled = new ArrayList();
       private List failurelist = new ArrayList();
   
  -    public Object invoke(MethodCall m) throws Throwable
  +   public Object invoke(InvocationContext ctx) throws Throwable
       {
  +      MethodCall m = ctx.getMethodCall();
           if (failurelist.contains(m.getMethod()))
           {
               throw new Exception("Failure in method" + m);
  
  
  
  1.8       +3 -2      JBossCache/tests/functional/org/jboss/cache/optimistic/MockInterceptor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MockInterceptor.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/optimistic/MockInterceptor.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- MockInterceptor.java	30 Dec 2006 17:49:52 -0000	1.7
  +++ MockInterceptor.java	23 May 2007 15:22:04 -0000	1.8
  @@ -1,6 +1,7 @@
   package org.jboss.cache.optimistic;
   
   import org.jboss.cache.CacheImpl;
  +import org.jboss.cache.InvocationContext;
   import org.jboss.cache.interceptors.Interceptor;
   import org.jboss.cache.marshall.MethodCall;
   
  @@ -30,9 +31,9 @@
   
      private List calledlist = new ArrayList();
   
  -   public synchronized Object invoke(MethodCall m) throws Throwable
  +   public synchronized Object invoke(InvocationContext ctx) throws Throwable
      {
  -
  +      MethodCall m = ctx.getMethodCall();
         calledlist.add(m.getMethod());
         called = m.getMethod();
   
  
  
  



More information about the jboss-cvs-commits mailing list