spring-framework/org.springframework.context
Chris Beams 28ff473091 Allow multiple @Filter 'value' args for concision
Prior to this change, to specify two or more annotation include/exclude
filters, one would declare @ComponentScan as follows:

    @ComponentScan(basePackages="example.scannable",
       useDefaultFilters=false,
       includeFilters={
           @Filter(MyStereotype.class),
           @Filter(MyComponent.class)
       })

This was because @Filter's 'value' attribute accepted exactly one
argument.

Now, any given @Filter may accept one or more value arguments, allowing
for more concise @ComponentScan declarations:

    @ComponentScan(basePackages="example.scannable",
       useDefaultFilters=false,
       includeFilters=@Filter({MyStereotype.class, MyComponent.class}))

Supplying multiple arguments in this way assumes that they are the same
type of filter, e.g. ANNOTATION, ASSIGNABLE_TYPE, or CUSTOM. To declare
multiple *different* types of filters, multiple @Filter annotations are
still required, e.g.:

    @ComponentScan(
        includeFilters={
            @Filter(type=ANNOTATION, value=MyStereotype.class),
            @Filter(type=ASSIGNABLE_TYPE, value={Foo.class, Bar.class})
        })

Note that specifying zero arguments, e.g. @Filter({}) is nonsensical; it
will have no effect on component scanning, but does not raise an error.

Issue: SPR-8881
2011-12-06 12:18:10 +00:00
..
.settings
src Allow multiple @Filter 'value' args for concision 2011-12-06 12:18:10 +00:00
.classpath upgraded compile-time dependency to EHCache 2.0.0 2011-11-28 15:10:03 +00:00
.project revised cache abstraction 2011-05-18 17:43:13 +00:00
.springBeans Remove "Feature" support introduced in 3.1 M1 2011-05-06 19:03:52 +00:00
build.xml
context.iml upgraded compile-time dependency to EHCache 2.0.0 2011-11-28 15:10:03 +00:00
ivy.xml upgraded compile-time dependency to EHCache 2.0.0 2011-11-28 15:10:03 +00:00
pom.xml Update ejb, inject-tck, jsr166 deps in context pom 2011-08-20 03:01:49 +00:00
template.mf cleanup of conversation dependencies 2011-10-20 09:56:07 +00:00