Class AbstractInjector.AmbiguousComponentResolutionException

    • Constructor Detail

      • AmbiguousComponentResolutionException

        public AmbiguousComponentResolutionException​(Class<?> ambiguousDependency,
                                                     String[] componentKeys)
        Construct a new exception with the ambiguous class type and the ambiguous component keys.
        Parameters:
        ambiguousDependency - the unresolved dependency type
        componentKeys - the ambiguous keys.
    • Method Detail

      • getMessage

        public String getMessage()
        Overrides:
        getMessage in class Throwable
        Returns:
        Returns a string containing the unresolved class type and the ambiguous keys.
      • getAmbiguousComponentKeys

        public String[] getAmbiguousComponentKeys()
        Returns:
        Returns the ambiguous component keys as array.
      • setComponent

        public void setComponent​(String component)