Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 38   Methods: 4
NCLOC: 23   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ExpirationPolicy.java - 100% 100% 100%
coverage
 1    package org.jboss.cache.eviction;
 2   
 3    import org.jboss.cache.Fqn;
 4   
 5    /**
 6    * Returns the {@link ExpirationAlgorithm} as the policy's algorithm.
 7    *
 8    * @author rosse
 9    */
 10    public class ExpirationPolicy extends BaseEvictionPolicy
 11    {
 12   
 13    private EvictionAlgorithm algorithm;
 14   
 15  8 public ExpirationPolicy()
 16    {
 17  8 algorithm = new ExpirationAlgorithm(this);
 18    }
 19   
 20  16 public EvictionAlgorithm getEvictionAlgorithm()
 21    {
 22  16 return algorithm;
 23    }
 24   
 25  4 public Class<ExpirationConfiguration> getEvictionConfigurationClass()
 26    {
 27  4 return ExpirationConfiguration.class;
 28    }
 29   
 30    /**
 31    * Returns true if it's a visit node event.
 32    */
 33  22 @Override
 34    public boolean canIgnoreEvent(Fqn fqn, NodeEventType eventType)
 35    {
 36  22 return (eventType == NodeEventType.VISIT_NODE_EVENT);
 37    }
 38    }