5252 * that returns {@code false}. Filters are {@link Predicate#and(Predicate) combined} so that multiple filters can be
5353 * taken into account. A type/field/method must pass all filters to be considered for further inspection.
5454 * <p>
55- * The collector uses {@link AotServices} to discover implementations of {@link TypeCollectorPredicateProvider } so that
55+ * The collector uses {@link AotServices} to discover implementations of {@link TypeCollectorFilters } so that
5656 * components using {@link TypeCollector} can contribute their own filtering logic to exclude types, fields, and methods
5757 * from being inspected.
5858 *
@@ -66,8 +66,8 @@ public class TypeCollector {
6666
6767 private static final Log logger = LogFactory .getLog (TypeCollector .class );
6868
69- private static final AotServices <TypeCollectorPredicateProvider > providers = AotServices .factories ()
70- .load (TypeCollectorPredicateProvider .class );
69+ private static final AotServices <TypeCollectorFilters > providers = AotServices .factories ()
70+ .load (TypeCollectorFilters .class );
7171
7272 private Predicate <Class <?>> typeFilter = Predicates .isTrue ();
7373
@@ -76,7 +76,7 @@ public class TypeCollector {
7676 private Predicate <Field > fieldFilter = Predicates .isTrue ();
7777
7878 /**
79- * Create a new {@link TypeCollector} applying all {@link TypeCollectorPredicateProvider } discovered through
79+ * Create a new {@link TypeCollector} applying all {@link TypeCollectorFilters } discovered through
8080 * {@link AotServices}.
8181 */
8282 public TypeCollector () {
@@ -105,6 +105,7 @@ public TypeCollector filterTypes(Predicate<Class<?>> filter) {
105105 *
106106 * @param filter filter predicate matching a {@link Class}.
107107 * @return {@code this} TypeCollector instance.
108+ * @since 4.0
108109 */
109110 @ Contract ("_ -> this" )
110111 public TypeCollector filterMethods (Predicate <Method > filter ) {
@@ -117,6 +118,7 @@ public TypeCollector filterMethods(Predicate<Method> filter) {
117118 *
118119 * @param filter filter predicate matching a {@link Class}.
119120 * @return {@code this} TypeCollector instance.
121+ * @since 4.0
120122 */
121123 @ Contract ("_ -> this" )
122124 public TypeCollector filterFields (Predicate <Field > filter ) {
@@ -351,7 +353,7 @@ public int size() {
351353 * @author Mark Paluch
352354 * @since 4.0
353355 */
354- public interface TypeCollectorPredicateProvider {
356+ public interface TypeCollectorFilters {
355357
356358 /**
357359 * Return a predicate to filter types.
@@ -383,12 +385,12 @@ default Predicate<Method> methodPredicate() {
383385 }
384386
385387 /**
386- * Default implementation of {@link TypeCollectorPredicateProvider } that excludes types from certain packages and
388+ * Default implementation of {@link TypeCollectorFilters } that excludes types from certain packages and
387389 * filters out unwanted fields and methods.
388390 *
389391 * @since 4.0
390392 */
391- private static class DefaultTypeCollectorPredicateProvider implements TypeCollectorPredicateProvider {
393+ private static class DefaultTypeCollectorFilters implements TypeCollectorFilters {
392394
393395 private static final Set <String > EXCLUDED_DOMAINS = Set .of ("java" , "sun." , "jdk." , "reactor." , "kotlinx." ,
394396 "kotlin." , "org.springframework.core." , "org.springframework.data.mapping." ,
0 commit comments