Annotation Interface InheritedComponent


@Target(TYPE) @Retention(RUNTIME) @Component @Inherited public @interface InheritedComponent
Used to detect at runtime implementing classes without forcing users to use annotations. Example: If abstract class SolutionSerializer is annotated with @InheritedComponent, all implementations will inherit the annotation, and therefore be detected at runtime as candidates for dependency injection.