File tree 8 files changed +17
-18
lines changed
org.springframework.context/src
main/java/org/springframework/context/annotation
test/java/org/springframework/context/annotation
8 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .context .annotation ;
18
18
19
- import static org .springframework .context .annotation .MetadataUtils .attributesFor ;
20
-
21
19
import java .lang .annotation .Annotation ;
22
20
23
21
import org .springframework .core .GenericTypeResolver ;
24
22
import org .springframework .core .annotation .AnnotationAttributes ;
25
23
import org .springframework .core .type .AnnotationMetadata ;
26
24
import org .springframework .util .Assert ;
27
25
26
+ import static org .springframework .context .annotation .MetadataUtils .*;
27
+
28
28
/**
29
29
* Convenient base class for {@link ImportSelector} implementations that select imports
30
30
* based on an {@link AdviceMode} value from an annotation (such as the {@code @Enable*}
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .context .annotation ;
18
18
19
- import static org .springframework .context .annotation .MetadataUtils .attributesFor ;
20
-
21
19
import java .util .LinkedHashSet ;
22
20
import java .util .Set ;
23
21
32
30
import org .springframework .core .type .AnnotationMetadata ;
33
31
import org .springframework .util .ClassUtils ;
34
32
33
+ import static org .springframework .context .annotation .MetadataUtils .*;
34
+
35
35
/**
36
36
* Utility class that allows for convenient registration of common
37
37
* {@link org.springframework.beans.factory.config.BeanPostProcessor} and
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .context .annotation ;
18
18
19
- import static org .springframework .context .annotation .MetadataUtils .attributesFor ;
20
-
21
19
import java .lang .annotation .Annotation ;
22
20
23
21
import org .springframework .beans .factory .annotation .AnnotatedBeanDefinition ;
24
22
import org .springframework .beans .factory .config .BeanDefinition ;
25
23
import org .springframework .core .annotation .AnnotationAttributes ;
26
24
import org .springframework .util .Assert ;
27
25
26
+ import static org .springframework .context .annotation .MetadataUtils .*;
27
+
28
28
/**
29
29
* A {@link ScopeMetadataResolver} implementation that by default checks for
30
30
* the presence of Spring's {@link Scope} annotation on the bean class.
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .context .annotation ;
18
18
19
- import static org .springframework .context .annotation .MetadataUtils .attributesFor ;
20
-
21
19
import org .springframework .aop .config .AopConfigUtils ;
22
20
import org .springframework .beans .factory .support .BeanDefinitionRegistry ;
23
21
import org .springframework .core .annotation .AnnotationAttributes ;
24
22
import org .springframework .core .type .AnnotationMetadata ;
25
23
24
+ import static org .springframework .context .annotation .MetadataUtils .*;
25
+
26
26
/**
27
27
* Registers an {@link org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator
28
28
* AnnotationAwareAspectJAutoProxyCreator} against the current {@link BeanDefinitionRegistry}
Original file line number Diff line number Diff line change 30
30
import org .springframework .beans .factory .config .BeanDefinition ;
31
31
import org .springframework .context .ResourceLoaderAware ;
32
32
import org .springframework .core .annotation .AnnotationAttributes ;
33
- import org .springframework .core .env .StandardEnvironment ;
34
33
import org .springframework .core .env .Environment ;
35
34
import org .springframework .core .env .EnvironmentCapable ;
35
+ import org .springframework .core .env .StandardEnvironment ;
36
36
import org .springframework .core .io .Resource ;
37
37
import org .springframework .core .io .ResourceLoader ;
38
38
import org .springframework .core .io .support .PathMatchingResourcePatternResolver ;
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .context .annotation ;
18
18
19
- import static org .springframework .context .annotation .MetadataUtils .attributesFor ;
20
-
21
19
import java .io .IOException ;
22
20
import java .lang .annotation .Annotation ;
23
21
import java .util .ArrayList ;
51
49
import org .springframework .core .type .filter .AssignableTypeFilter ;
52
50
import org .springframework .util .StringUtils ;
53
51
52
+ import static org .springframework .context .annotation .MetadataUtils .*;
53
+
54
54
/**
55
55
* Parses a {@link Configuration} class definition, populating a collection of
56
56
* {@link ConfigurationClass} objects (parsing a single Configuration class may result in
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .context .annotation ;
18
18
19
- import static org .springframework .context .weaving .AspectJWeavingEnabler .ASPECTJ_AOP_XML_RESOURCE ;
20
-
21
19
import org .springframework .beans .factory .BeanClassLoaderAware ;
22
20
import org .springframework .beans .factory .annotation .Autowired ;
23
21
import org .springframework .beans .factory .config .BeanDefinition ;
30
28
import org .springframework .instrument .classloading .LoadTimeWeaver ;
31
29
import org .springframework .util .Assert ;
32
30
31
+ import static org .springframework .context .weaving .AspectJWeavingEnabler .*;
32
+
33
33
/**
34
34
* {@code @Configuration} class that registers a {@link LoadTimeWeaver} bean.
35
35
*
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .context .annotation ;
18
18
19
- import static org .hamcrest .CoreMatchers .is ;
20
- import static org .hamcrest .CoreMatchers .notNullValue ;
21
- import static org .junit .Assert .assertThat ;
22
- import static org .springframework .context .annotation .MetadataUtils .attributesFor ;
23
-
24
19
import java .lang .annotation .ElementType ;
25
20
import java .lang .annotation .Retention ;
26
21
import java .lang .annotation .RetentionPolicy ;
35
30
import org .springframework .core .type .AnnotationMetadata ;
36
31
import org .springframework .scheduling .annotation .AsyncAnnotationBeanPostProcessor ;
37
32
33
+ import static org .hamcrest .CoreMatchers .*;
34
+ import static org .junit .Assert .*;
35
+ import static org .springframework .context .annotation .MetadataUtils .*;
36
+
38
37
/**
39
38
* Tests that an ImportAware @Configuration classes gets injected with the
40
39
* annotation metadata of the @Configuration class that imported it.
You can’t perform that action at this time.
0 commit comments