1 8 14 package jfun.yan; 15 16 import jfun.util.Misc; 17 18 26 public final class AmbiguousComponentResolutionException extends 27 YanException { 28 private final Object key; 29 private final Class t1; 30 private final Class t2; 31 35 public Object getComponentKey(){ 36 return key; 37 } 38 42 public Class getType1() { 43 return t1; 44 } 45 49 public Class getType2() { 50 return t2; 51 } 52 53 59 public AmbiguousComponentResolutionException(final Object key, 60 final Class t1, final Class t2) { 61 super("ambiguous resolution: : both " 62 + Misc.getTypeName(t1) + " and " + Misc.getTypeName(t2) 63 + " resolvable for key " + key); 64 this.key = key; 65 this.t1 = t1; 66 this.t2 = t2; 67 } 68 } 69 | Popular Tags |