Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 52   Methods: 3
NCLOC: 21   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
AopLRUPolicy.java - 0% 0% 0%
coverage
 1    /*
 2    * JBoss, the OpenSource J2EE webOS
 3    *
 4    * Distributable under LGPL license.
 5    * See terms of license at gnu.org.
 6    * Created on March 25 2003
 7    */
 8    package org.jboss.cache.pojo.eviction;
 9   
 10    //import org.apache.commons.logging.Log;
 11    //import org.apache.commons.logging.LogFactory;
 12    //import org.jboss.cache.aop.eviction.AopEvictionPolicy;
 13    //import org.jboss.cache.aop.eviction.AopLRUAlgorithm;
 14   
 15    import org.jboss.cache.Fqn;
 16    import org.jboss.cache.eviction.EvictionAlgorithm;
 17    import org.jboss.cache.eviction.LRUPolicy;
 18    import org.jboss.cache.eviction.NodeEventType;
 19   
 20   
 21    /**
 22    * Provider to provide eviction policy. This one is based on LRU algorithm that a user
 23    * can specify either maximum number of nodes or the idle time of a node to be evicted.
 24    *
 25    * @author Ben Wang 02-2004
 26    */
 27    class AopLRUPolicy extends LRUPolicy implements AopEvictionPolicy
 28    {
 29    // private static final Log log_ = LogFactory.getLog(AopLRUPolicy.class);
 30   
 31  0 public AopLRUPolicy()
 32    {
 33  0 super();
 34  0 algorithm = (EvictionAlgorithm) new AopLRUAlgorithm();
 35    }
 36   
 37    // we are using the same eviction algorithm now.
 38  0 public EvictionAlgorithm getEvictionAlgorithm()
 39    {
 40  0 return algorithm;
 41    }
 42   
 43    /**
 44    * Override to provide PojoCache specific behavior.
 45    *
 46    * @param fqn
 47    */
 48  0 public boolean canIgnoreEvent(Fqn fqn, NodeEventType eventType)
 49    {
 50  0 return false;
 51    }
 52    }