1 8 14 package jfun.yan; 15 16 24 public class UnsatisfiedComponentException extends ComponentResolutionException { 25 private final Object key; 26 31 public UnsatisfiedComponentException(Object k, String msg) { 32 super(msg); 33 this.key = k; 34 } 35 36 40 public UnsatisfiedComponentException(Object k) { 41 super("component <"+k + "> not satisfied"); 42 this.key = k; 43 } 44 48 public Object getComponentKey(){ 49 return key; 50 } 51 } 52 | Popular Tags |