Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 38   Methods: 1
NCLOC: 23   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
PojoEventInterceptor.java 0% 0% 0% 0%
coverage
 1    /*
 2    * JBoss, Home of Professional Open Source
 3    *
 4    * Distributable under LGPL license.
 5    * See terms of license at gnu.org.
 6    */
 7   
 8    package org.jboss.cache.pojo.interceptors;
 9   
 10    import org.jboss.aop.joinpoint.Invocation;
 11    import org.jboss.aop.joinpoint.MethodInvocation;
 12   
 13    /**
 14    * Handles the POJO event notification.
 15    *
 16    * @author Ben Wang
 17    * @version $Id: PojoEventInterceptor.java,v 1.2 2007/05/23 10:28:56 msurtani Exp $
 18    */
 19    public class PojoEventInterceptor extends AbstractInterceptor
 20    {
 21  0 public Object invoke(Invocation in) throws Throwable
 22    {
 23  0 if (!(in instanceof MethodInvocation))
 24    {
 25  0 throw new IllegalArgumentException("PojoEventInterceptor.invoke(): invocation not MethodInvocation");
 26    }
 27  0 MethodInvocation invocation = (MethodInvocation) in;
 28  0 try
 29    {
 30  0 System.out.println("**** Entering method: **** " + invocation.getMethod());
 31  0 return invocation.invokeNext(); // proceed to next advice or actual call
 32    }
 33    finally
 34    {
 35  0 System.out.println("Leaving method: " + invocation.getMethod());
 36    }
 37    }
 38    }