I have the following annotation in my code:
@ComponentScan(basePackageClasses={MyClass.class},
excludeFilters={@Filter(Component.class)}, //@Component
includeFilters={@Filter(type=ASSIGNABLE_TYPE, classes=MyClass.class)}
)
MyClass
is annotated with @Component
but still want to include it during component scan. However, component scan filters seem to use and logic instead of or. How do I achieve what I want to do?