Clover coverage report - picocontainer - 1.2-beta-1
Coverage timestamp: Sun May 29 2005 14:29:04 BST
file stats: LOC: 40   Methods: 3
NCLOC: 19   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
UnsatisfiableDependenciesException.java - 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 *
 9    *****************************************************************************/
 10    package org.picocontainer.defaults;
 11   
 12    import org.picocontainer.ComponentAdapter;
 13    import org.picocontainer.PicoIntrospectionException;
 14   
 15    import java.util.Set;
 16   
 17    /**
 18    * @author Aslak Hellesøy
 19    * @version $Revision: 1801 $
 20    */
 21    public class UnsatisfiableDependenciesException extends PicoIntrospectionException {
 22   
 23    private final ComponentAdapter instantiatingComponentAdapter;
 24    private final Set failedDependencies;
 25   
 26  80 public UnsatisfiableDependenciesException(ComponentAdapter instantiatingComponentAdapter, Set failedDependencies) {
 27  80 super(instantiatingComponentAdapter.getComponentImplementation().getName() + " has unsatisfiable dependencies: " + failedDependencies);
 28  80 this.instantiatingComponentAdapter = instantiatingComponentAdapter;
 29  80 this.failedDependencies = failedDependencies;
 30    }
 31   
 32  12 public ComponentAdapter getUnsatisfiableComponentAdapter() {
 33  12 return instantiatingComponentAdapter;
 34    }
 35   
 36  32 public Set getUnsatisfiableDependencies() {
 37  32 return failedDependencies;
 38    }
 39   
 40    }