Class ComponentScanner
- java.lang.Object
-
- io.streamthoughts.azkarra.streams.components.ComponentScanner
-
public class ComponentScanner extends Object
TheComponentScanner
class can be used used to scan the classpath for automatically registering declared classes annotated withComponent
andComponentFactory
classes.
-
-
Constructor Summary
Constructors Constructor Description ComponentScanner(ComponentRegistry registry)
Creates a newComponentScanner
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
scan(String componentPaths)
Scans external component for the specified paths.void
scan(List<String> componentPaths)
Scans external component for the specified paths.void
scanForPackage(Package source)
Scans the specified package for components.void
scanForPackage(String source)
Scans the specified package for components.
-
-
-
Constructor Detail
-
ComponentScanner
public ComponentScanner(ComponentRegistry registry)
Creates a newComponentScanner
instance.- Parameters:
registry
- theComponentRegistry
used to register providers.
-
-
Method Detail
-
scan
public void scan(String componentPaths)
Scans external component for the specified paths.- Parameters:
componentPaths
- the comma-separated list of top-level components directories.
-
scan
public void scan(List<String> componentPaths)
Scans external component for the specified paths.- Parameters:
componentPaths
- the list of top-level components directories.
-
scanForPackage
public void scanForPackage(Package source)
Scans the specified package for components.- Parameters:
source
- thePackage
to be scanned; must not benull
.
-
scanForPackage
public void scanForPackage(String source)
Scans the specified package for components.- Parameters:
source
- the package to be scanned; must not benull
.
-
-