Clover coverage report - picocontainer - 1.2-beta-1
Coverage timestamp: Sun May 29 2005 14:29:04 BST
file stats: LOC: 69   Methods: 14
NCLOC: 42   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
EmptyPicoContainer.java - 0% 0% 0%
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 *
 9    *****************************************************************************/
 10    package org.picocontainer.alternatives;
 11   
 12    import java.io.Serializable;
 13    import java.util.Collections;
 14    import java.util.Collection;
 15    import java.util.List;
 16    import org.picocontainer.PicoContainer;
 17    import org.picocontainer.PicoVisitor;
 18    import org.picocontainer.ComponentAdapter;
 19   
 20    /**
 21    * empty pico container serving as recoil damper in situations where you
 22    * do not like to check whether container reference suplpied to you
 23    * is null or not
 24    * @author Konstantin Pribluda
 25    * @since 1.1
 26    */
 27    public class EmptyPicoContainer implements PicoContainer, Serializable {
 28  0 public Object getComponentInstance(Object componentKey) {
 29  0 return null;
 30    }
 31   
 32  0 public Object getComponentInstanceOfType(Class componentType) {
 33  0 return null;
 34    }
 35  0 public List getComponentInstances() {
 36  0 return Collections.EMPTY_LIST;
 37    }
 38   
 39  0 public PicoContainer getParent() {
 40  0 return null;
 41    }
 42  0 public ComponentAdapter getComponentAdapter(Object componentKey) {
 43  0 return null;
 44    }
 45   
 46  0 public ComponentAdapter getComponentAdapterOfType(Class componentType) {
 47  0 return null;
 48    }
 49   
 50  0 public Collection getComponentAdapters() {
 51  0 return Collections.EMPTY_LIST;
 52    }
 53   
 54  0 public List getComponentAdaptersOfType(Class componentType) {
 55  0 return Collections.EMPTY_LIST;
 56    }
 57   
 58  0 public void verify() {}
 59   
 60  0 public void accept(PicoVisitor visitor) { }
 61   
 62  0 public List getComponentInstancesOfType(Class componentType) {
 63  0 return Collections.EMPTY_LIST;
 64    }
 65   
 66  0 public void start() {}
 67  0 public void stop() {}
 68  0 public void dispose() {}
 69    }