Interface Discoverer


  • public interface Discoverer
    Potentially discovers additional Injectables. Any problems that may be of interest after discovery are reported via getProblems().
    • Method Detail

      • discover

        java.util.Set<Injectable<?>> discover()
                                       throws DefinitionException
        Discovers additional Injectables. If completed successfully, subsequent calls will return the original result, otherwise undefined.
        Returns:
        a set of Injectable that were discovered, never null or contains null but can be empty
        Throws:
        DefinitionException - when a definition problem was encountered
      • getProblems

        java.util.List<java.lang.String> getProblems()
        Returns a list of problems encountered during discovery. Note that if auto discovery is off this list is guaranteed to be empty. If not empty, callers would do well to include the list of problems in their final exception message.
        Returns:
        a list of problems, never null or contains null but can be empty
        Throws:
        java.lang.IllegalStateException - when called before calling discover()