File tree 5 files changed +14
-14
lines changed
spring-context/src/main/java/org/springframework/context/annotation
5 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
29
29
*
30
30
* <p>Conditions must follow the same restrictions as {@link BeanFactoryPostProcessor}
31
31
* and take care to never interact with bean instances. For more fine-grained control
32
- * of conditions that interact with {@code @Configuration} beans consider the
33
- * {@link ConfigurationCondition} interface.
32
+ * of conditions that interact with {@code @Configuration} beans consider implementing
33
+ * the {@link ConfigurationCondition} interface.
34
34
*
35
35
* @author Phillip Webb
36
36
* @since 4.0
@@ -44,7 +44,7 @@ public interface Condition {
44
44
/**
45
45
* Determine if the condition matches.
46
46
* @param context the condition context
47
- * @param metadata metadata of the {@link org.springframework.core.type.AnnotationMetadata class}
47
+ * @param metadata the metadata of the {@link org.springframework.core.type.AnnotationMetadata class}
48
48
* or {@link org.springframework.core.type.MethodMetadata method} being checked
49
49
* @return {@code true} if the condition matches and the component can be registered,
50
50
* or {@code false} to veto the annotated component's registration
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
23
23
import org .springframework .lang .Nullable ;
24
24
25
25
/**
26
- * Context information for use by {@link Condition}s .
26
+ * Context information for use by {@link Condition} implementations .
27
27
*
28
28
* @author Phillip Webb
29
29
* @author Juergen Hoeller
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
62
62
public @interface Conditional {
63
63
64
64
/**
65
- * All {@link Condition}s that must {@linkplain Condition#matches match}
65
+ * All {@link Condition} classes that must {@linkplain Condition#matches match}
66
66
* in order for the component to be registered.
67
67
*/
68
68
Class <? extends Condition >[] value ();
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -704,7 +704,7 @@ SourceClass asSourceClass(@Nullable Class<?> classType) throws IOException {
704
704
}
705
705
706
706
/**
707
- * Factory method to obtain {@link SourceClass SourceClasss} from class names.
707
+ * Factory method to obtain a {@link SourceClass} collection from class names.
708
708
*/
709
709
private Collection <SourceClass > asSourceClasses (String ... classNames ) throws IOException {
710
710
List <SourceClass > annotatedClasses = new ArrayList <>(classNames .length );
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
18
18
19
19
/**
20
20
* A {@link Condition} that offers more fine-grained control when used with
21
- * {@code @Configuration}. Allows certain {@link Condition}s to adapt when they match
21
+ * {@code @Configuration}. Allows certain conditions to adapt when they match
22
22
* based on the configuration phase. For example, a condition that checks if a bean
23
23
* has already been registered might choose to only be evaluated during the
24
24
* {@link ConfigurationPhase#REGISTER_BEAN REGISTER_BEAN} {@link ConfigurationPhase}.
@@ -52,8 +52,8 @@ enum ConfigurationPhase {
52
52
* The {@link Condition} should be evaluated when adding a regular
53
53
* (non {@code @Configuration}) bean. The condition will not prevent
54
54
* {@code @Configuration} classes from being added.
55
- * <p>At the time that the condition is evaluated, all {@code @Configuration}s
56
- * will have been parsed.
55
+ * <p>At the time that the condition is evaluated, all {@code @Configuration}
56
+ * classes will have been parsed.
57
57
*/
58
58
REGISTER_BEAN
59
59
}
You can’t perform that action at this time.
0 commit comments