Scan more than one component at the time #182
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR create an option for add more packages in scanning component feature, inspired by this issue. With this change, developers can use new
@ComponetsScan
annotation withvalues
parameter where they can add all needed packages. The original@ComponentScan
annotations is 100% preserved and now can cooperate with new@ComponetsScan
.All tests still passes like a charm and new test passed without any problem.
Examples
Before
After 1. variant
After 2. variant
After 1. variant if we want scan actual package
After 2. variant if we want scan actual package
NOTE:
If dev use
@ComponentsScan
or@ComponentsScan([])
or@ComponentsScan([""])
this will scan actual package like original@ComponentScan
.If dev add non existing or correct package name to
@ComponentsScan
values, the package will be ignored and nothing happens.If dev add multiple package names to
@ComponentsScan
values, only one will be used and multiple package names error is not shown.