Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 42   Methods: 3
NCLOC: 24   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
AbstractInterceptor.java - 33.3% 33.3% 33.3%
coverage 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.apache.commons.logging.Log;
 11    import org.apache.commons.logging.LogFactory;
 12    import org.jboss.aop.advice.Interceptor;
 13    import org.jboss.aop.joinpoint.MethodInvocation;
 14    import org.jboss.cache.CacheSPI;
 15    import org.jboss.cache.InvocationContext;
 16    import org.jboss.cache.pojo.impl.PojoCacheImpl;
 17   
 18    /**
 19    * Base interceptor class for PojoCache interceptor stack.
 20    *
 21    * @author Ben Wang
 22    * @version $Id: AbstractInterceptor.java,v 1.3 2007/06/28 00:56:06 jgreene Exp $
 23    */
 24    public abstract class AbstractInterceptor implements Interceptor
 25    {
 26    protected final Log log = LogFactory.getLog(AbstractInterceptor.this.getClass());
 27   
 28  0 protected InvocationContext getInvocationContext(MethodInvocation in)
 29    {
 30  0 return ((PojoCacheImpl) in.getTargetObject()).getCacheSPI().getInvocationContext();
 31    }
 32   
 33  25470 protected CacheSPI getCache(MethodInvocation in)
 34    {
 35  25470 return ((PojoCacheImpl) in.getTargetObject()).getCacheSPI();
 36    }
 37   
 38  0 public String getName()
 39    {
 40  0 return this.getClass().getName();
 41    }
 42    }