Is it possible to override/deactivate a component-scan definition defined in a "legacy" context definition xml?
Let's say I have a context definition example-context.xml
in a dependency of my project and I import that context in my own project in a context definition my-context.xml
example-context.xml
contains a component-scan definition:
<context:component-scan base-package="com.foo"/>
Is it possible to somehow deactivate or override that component-scan definition by adding some exclusion filters to it?