Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 56   Methods: 3
NCLOC: 18   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
PojoCacheFactory.java - 66.7% 66.7% 66.7%
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;
 9   
 10    import org.jboss.cache.config.Configuration;
 11    import org.jboss.cache.pojo.impl.PojoCacheImpl;
 12   
 13    /**
 14    * Factory method to create a PojoCache instance.
 15    *
 16    * @version $Id: PojoCacheFactory.java,v 1.2 2007/01/18 16:55:19 msurtani Exp $
 17    */
 18    public class PojoCacheFactory
 19    {
 20    /**
 21    * Create a PojoCache instance. Note that this will start the cache life cycle automatically.
 22    *
 23    * @param config A configuration string that represents the file name that is used to
 24    * setCache the underlying Cache instance.
 25    * @return PojoCache
 26    */
 27  0 public static PojoCache createCache(String config)
 28    {
 29  0 return new PojoCacheImpl(config, true);
 30    }
 31   
 32    /**
 33    * Create a PojoCache instance.
 34    *
 35    * @param config A configuration string that represents the file name that is used to
 36    * setCache the underlying Cache instance.
 37    * @param start If true, it will start the cache life cycle.
 38    * @return PojoCache
 39    */
 40  231 public static PojoCache createCache(String config, boolean start)
 41    {
 42  231 return new PojoCacheImpl(config, start);
 43    }
 44   
 45    /**
 46    * Create a PojoCache instance.
 47    *
 48    * @param config A configuration object that is used to setCache the underlying Cache instance.
 49    * @param start If true, it will start the cache life cycle.
 50    * @return PojoCache
 51    */
 52  268 public static PojoCache createCache(Configuration config, boolean start)
 53    {
 54  268 return new PojoCacheImpl(config, start);
 55    }
 56    }