jfun.yan
Class AmbiguousComponentResolutionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jfun.yan.YanException
                  extended by jfun.yan.AmbiguousComponentResolutionException
All Implemented Interfaces:
java.io.Serializable

public final class AmbiguousComponentResolutionException
extends YanException

Exception when ambiguity happens for component resolution.

Codehaus.org.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
AmbiguousComponentResolutionException(java.lang.Object key, java.lang.Class t1, java.lang.Class t2)
          Create an instance.
 
Method Summary
 java.lang.Object getComponentKey()
          Gets the key for the component being resolved.
 java.lang.Class getType1()
          Gets the type of the first candidate component.s
 java.lang.Class getType2()
          Gets the type of the second candidate component.s
 
Methods inherited from class jfun.yan.YanException
clearResolutionTrace, getResolutionTrace, printResolutionTrace, printResolutionTrace, printResolutionTrace, printStackTrace, printStackTrace, push
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmbiguousComponentResolutionException

public AmbiguousComponentResolutionException(java.lang.Object key,
                                             java.lang.Class t1,
                                             java.lang.Class t2)
Create an instance.

Parameters:
key - the key of the component being resolved.
t1 - the type of the first candidate.
t2 - the type of the second candidate.
Method Detail

getComponentKey

public java.lang.Object getComponentKey()
Gets the key for the component being resolved.

Returns:
the component key.

getType1

public java.lang.Class getType1()
Gets the type of the first candidate component.s

Returns:
the component type.

getType2

public java.lang.Class getType2()
Gets the type of the second candidate component.s

Returns:
the component type.