Class ComponentScanner


  • public class ComponentScanner
    extends java.lang.Object
    Provides methods to scan packages for injectables.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void scan​(org.int4.dirk.api.CandidateRegistry registry)
      Scans for annotated types and adds them to the given CandidateRegistry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • scan

        public void scan​(org.int4.dirk.api.CandidateRegistry registry)
                  throws org.int4.dirk.api.definition.AutoDiscoveryException,
                         org.int4.dirk.api.definition.DefinitionException,
                         org.int4.dirk.api.definition.DependencyException
        Scans for annotated types and adds them to the given CandidateRegistry.
        Parameters:
        registry - a CandidateRegistry to add found types, cannot be null
        Throws:
        org.int4.dirk.api.definition.AutoDiscoveryException - when auto discovery fails to find all required types
        org.int4.dirk.api.definition.DefinitionException - when a definition problem was encountered
        org.int4.dirk.api.definition.DependencyException - when dependencies between registered types cannot be resolved