org.picocontainer.defaults
Class AmbiguousComponentResolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.picocontainer.PicoException
org.picocontainer.PicoRegistrationException
org.picocontainer.PicoIntrospectionException
org.picocontainer.defaults.AmbiguousComponentResolutionException
- All Implemented Interfaces:
- Serializable
- public class AmbiguousComponentResolutionException
- extends PicoIntrospectionException
Exception that is thrown as part of the introspection. Raised if a PicoContainer cannot resolve a
type dependency because the registered ComponentAdapter
s are not
distinct.
- Since:
- 1.0
- Author:
- Paul Hammant, Aslak Hellesøy, Jon Tirsén
- See Also:
- Serialized Form
AmbiguousComponentResolutionException
public AmbiguousComponentResolutionException(Class ambiguousClass,
Object[] componentKeys)
- Construct a new exception with the ambigous class type and the ambiguous component keys.
- Parameters:
ambiguousClass
- the unresolved dependency typecomponentKeys
- the ambiguous keys.
getMessage
public String getMessage()
- Returns:
- Returns a string containing the unresolved class type and the ambiguous keys.
getAmbiguousComponentKeys
public Object[] getAmbiguousComponentKeys()
- Returns:
- Returns the ambiguous component keys as array.
Copyright © 2003-2004 Codehaus. All Rights Reserved.