25
25
import org .springframework .lang .Nullable ;
26
26
27
27
/**
28
- * A collection of {@link ResourcePatternHint} describing whether
29
- * resources should be made available at runtime through a matching
30
- * mechanism or inclusion/exclusion .
28
+ * A collection of {@link ResourcePatternHint} describing whether resources should
29
+ * be made available at runtime using a matching algorithm based on include/exclude
30
+ * patterns .
31
31
*
32
32
* @author Stephane Nicoll
33
33
* @author Brian Clozel
@@ -75,7 +75,7 @@ public static class Builder {
75
75
}
76
76
77
77
/**
78
- * Includes the resources matching the specified pattern .
78
+ * Include resources matching the specified patterns .
79
79
* @param reachableType the type that should be reachable for this hint to apply
80
80
* @param includes the include patterns (see {@link ResourcePatternHint} documentation)
81
81
* @return {@code this}, to facilitate method chaining
@@ -88,7 +88,7 @@ public Builder includes(@Nullable TypeReference reachableType, String... include
88
88
}
89
89
90
90
/**
91
- * Includes the resources matching the specified pattern .
91
+ * Include resources matching the specified patterns .
92
92
* @param includes the include patterns (see {@link ResourcePatternHint} documentation)
93
93
* @return {@code this}, to facilitate method chaining
94
94
*/
@@ -97,9 +97,9 @@ public Builder includes(String... includes) {
97
97
}
98
98
99
99
/**
100
- * Exclude resources matching the specified pattern .
100
+ * Exclude resources matching the specified patterns .
101
101
* @param reachableType the type that should be reachable for this hint to apply
102
- * @param excludes the excludes pattern (see {@link ResourcePatternHint} documentation)
102
+ * @param excludes the exclude patterns (see {@link ResourcePatternHint} documentation)
103
103
* @return {@code this}, to facilitate method chaining
104
104
*/
105
105
public Builder excludes (TypeReference reachableType , String ... excludes ) {
@@ -110,22 +110,23 @@ public Builder excludes(TypeReference reachableType, String... excludes) {
110
110
}
111
111
112
112
/**
113
- * Exclude resources matching the specified pattern .
114
- * @param excludes the excludes pattern (see {@link ResourcePatternHint} documentation)
113
+ * Exclude resources matching the specified patterns .
114
+ * @param excludes the exclude patterns (see {@link ResourcePatternHint} documentation)
115
115
* @return {@code this}, to facilitate method chaining
116
116
*/
117
117
public Builder excludes (String ... excludes ) {
118
118
return excludes (null , excludes );
119
119
}
120
120
121
121
/**
122
- * Creates a {@link ResourcePatternHints} based on the state of this
122
+ * Create {@link ResourcePatternHints} based on the state of this
123
123
* builder.
124
- * @return a resource pattern hint
124
+ * @return resource pattern hints
125
125
*/
126
126
ResourcePatternHints build () {
127
127
return new ResourcePatternHints (this );
128
128
}
129
129
130
130
}
131
+
131
132
}
0 commit comments