Package org.int4.dirk.plugins
Class ComponentScanner
- java.lang.Object
-
- org.int4.dirk.plugins.ComponentScanner
-
public class ComponentScanner extends java.lang.ObjectProvides methods to scan packages for injectables.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidscan(org.int4.dirk.api.CandidateRegistry registry)Scans for annotated types and adds them to the givenCandidateRegistry.
-
-
-
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.DependencyExceptionScans for annotated types and adds them to the givenCandidateRegistry.- Parameters:
registry- aCandidateRegistryto add found types, cannot benull- Throws:
org.int4.dirk.api.definition.AutoDiscoveryException- when auto discovery fails to find all required typesorg.int4.dirk.api.definition.DefinitionException- when a definition problem was encounteredorg.int4.dirk.api.definition.DependencyException- when dependencies between registered types cannot be resolved
-
-