1 10 package org.picocontainer.defaults; 11 12 import org.picocontainer.ComponentAdapter; 13 import org.picocontainer.PicoIntrospectionException; 14 15 import java.util.Set ; 16 17 21 public class UnsatisfiableDependenciesException extends PicoIntrospectionException { 22 23 private final ComponentAdapter instantiatingComponentAdapter; 24 private final Set failedDependencies; 25 26 public UnsatisfiableDependenciesException(ComponentAdapter instantiatingComponentAdapter, Set failedDependencies) { 27 super(instantiatingComponentAdapter.getComponentImplementation().getName() + " has unsatisfiable dependencies: " + failedDependencies); 28 this.instantiatingComponentAdapter = instantiatingComponentAdapter; 29 this.failedDependencies = failedDependencies; 30 } 31 32 public ComponentAdapter getUnsatisfiableComponentAdapter() { 33 return instantiatingComponentAdapter; 34 } 35 36 public Set getUnsatisfiableDependencies() { 37 return failedDependencies; 38 } 39 40 } 41 | Popular Tags |