1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
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 |
| |
19 |
| |
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 |
| } |