Perform checks about Component declaration. The following checks are performed:
- Check 1
- A - Verify that if there's at least one
@Component
annotation and staticRegistration = true"
(the default when not specified) then there needs to be a components.txt
file
- Check 2
- A - Verify that Classes annotated with
@Component
are defined in components.txt
(unless the
staticRegistration = false"
annotation parameter is specified)
- B - Verify that if the
staticRegistration = false"
annotation parameter is specified then the
Component must not be declared in components.txt
- C - Verify that components listed in
components.txt
are not listed several times
- D - Verify that all components listed in
components.txt
have been found in the current module.
Incidentally this also checks that any class declared in components.txt
has a @Component
defined.
- Check 3
- A - Verify that either
@Singleton
or @InstantiationStrategy
are used on any class annotated
with @Component
- Check 4
- A - Verify that the
components.txt
ends with a line return character.