Clover coverage report - picocontainer - 1.2-beta-1
Coverage timestamp: Sun May 29 2005 14:29:04 BST
file stats: LOC: 48   Methods: 7
NCLOC: 25   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
NullComponentMonitor.java 100% 100% 100% 100%
coverage
 1    /*****************************************************************************
 2    * Copyright (C) PicoContainer Organization. All rights reserved. *
 3    * ------------------------------------------------------------------------- *
 4    * The software in this package is published under the terms of the BSD *
 5    * style license a copy of which has been included with this distribution in *
 6    * the LICENSE.txt file. *
 7    * *
 8    * Original code by Paul Hammant & Obie Fernandez & Aslak *
 9    *****************************************************************************/
 10   
 11    package org.picocontainer.defaults;
 12   
 13    import java.io.Serializable;
 14    import java.lang.reflect.Constructor;
 15    import java.lang.reflect.Method;
 16   
 17    /**
 18    * @author Paul Hammant & Obie Fernandez
 19    * @version $Revision: 1840 $
 20    */
 21    public class NullComponentMonitor implements ComponentMonitor, Serializable {
 22    private static NullComponentMonitor instance;
 23   
 24  860 public void instantiating(Constructor constructor) {
 25    }
 26   
 27  852 public void instantiated(Constructor constructor, long beforeTime, long duration) {
 28    }
 29   
 30  8 public void instantiationFailed(Constructor constructor, Exception e) {
 31    }
 32   
 33  258 public void invoking(Method method, Object instance) {
 34    }
 35   
 36  252 public void invoked(Method method, Object instance, long duration) {
 37    }
 38   
 39  6 public void invocationFailed(Method method, Object instance, Exception e) {
 40    }
 41   
 42  2166 public static synchronized NullComponentMonitor getInstance() {
 43  2166 if (instance == null) {
 44  86 instance = new NullComponentMonitor();
 45    }
 46  2166 return instance;
 47    }
 48    }