Clover coverage report - Converter - 1.0
Coverage timestamp: Thu Jan 1 1970 10:00:00 EST
file stats: LOC: 40   Methods: 2
NCLOC: 16   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
SimpleConverterFactory.java - 0% 0% 0%
coverage
 1   
 /*
 2   
  * Copyright (C) The Spice Group. All rights reserved.
 3   
  *
 4   
  * This software is published under the terms of the Spice
 5   
  * Software License version 1.1, a copy of which has been included
 6   
  * with this distribution in the LICENSE.txt file.
 7   
  */
 8   
 package org.codehaus.spice.converter.lib;
 9   
 
 10   
 import org.codehaus.spice.converter.Converter;
 11   
 import org.codehaus.spice.converter.ConverterFactory;
 12   
 
 13   
 /**
 14   
  * A ConverterFactory that creates converter instances using reflection.
 15   
  *
 16   
  * @author <a href="mailto:adammurdoch@apache.org">Adam Murdoch</a>
 17   
  * @version $Revision: 1.1 $ $Date: 2003/12/02 08:37:56 $
 18   
  */
 19   
 public class SimpleConverterFactory
 20   
     implements ConverterFactory
 21   
 {
 22   
     /**
 23   
      * The class from which to instantiate converters.
 24   
      */
 25   
     private final Class m_converterClass;
 26   
 
 27  0
     public SimpleConverterFactory( final Class converterClass )
 28   
     {
 29  0
         m_converterClass = converterClass;
 30   
     }
 31   
 
 32   
     /**
 33   
      * Creates an instance of a converter.
 34   
      */
 35  0
     public Converter createConverter() throws Exception
 36   
     {
 37  0
         return (Converter)m_converterClass.newInstance();
 38   
     }
 39   
 }
 40