Clover coverage report - PicoContainer - 1.1
Coverage timestamp: Thu Nov 4 2004 11:55:45 CST
file stats: LOC: 41   Methods: 3
NCLOC: 19   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
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: 1.8 $
 20   
  */
 21   
 public class UnsatisfiableDependenciesException extends PicoIntrospectionException {
 22   
 
 23   
     private final ComponentAdapter instantiatingComponentAdapter;
 24   
     private final Set failedDependencies;
 25   
 
 26  78
     public UnsatisfiableDependenciesException(ComponentAdapter instantiatingComponentAdapter, Set failedDependencies) {
 27  78
         super(instantiatingComponentAdapter.getComponentImplementation().getName() + " has unsatisfiable dependencies: " + failedDependencies);
 28  78
         this.instantiatingComponentAdapter = instantiatingComponentAdapter;
 29  78
         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   
 }
 41