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(CandidateRegistry registry)Scans for annotated types and adds them to the givenCandidateRegistry.
-
-
-
Method Detail
-
scan
public void scan(CandidateRegistry registry) throws AutoDiscoveryException, DefinitionException, DependencyException
Scans for annotated types and adds them to the givenCandidateRegistry.- Parameters:
registry- aCandidateRegistryto add found types, cannot benull- Throws:
AutoDiscoveryException- when auto discovery fails to find all required typesDefinitionException- when a definition problem was encounteredDependencyException- when dependencies between registered types cannot be resolved
-
-