org.picocontainer.injectors
Class AbstractInjector.AmbiguousComponentResolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.picocontainer.PicoException
org.picocontainer.PicoCompositionException
org.picocontainer.injectors.AbstractInjector.AmbiguousComponentResolutionException
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- AbstractInjector<T>
public static final class AbstractInjector.AmbiguousComponentResolutionException
- extends PicoCompositionException
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.
- Author:
- Paul Hammant, Aslak Hellesøy, Jon Tirsén
- See Also:
- Serialized Form
AbstractInjector.AmbiguousComponentResolutionException
public AbstractInjector.AmbiguousComponentResolutionException(Class<?> ambiguousDependency,
Object[] componentKeys)
- Construct a new exception with the ambigous class type and the ambiguous component keys.
- Parameters:
ambiguousDependency
- the unresolved dependency typecomponentKeys
- the ambiguous keys.
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
- 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.
setComponent
public void setComponent(Class<?> component)
Copyright © 2003-2010 Codehaus. All Rights Reserved.