Interface TypeCollector.TypeCollectorFilters

Enclosing class:
TypeCollector

public static interface TypeCollector.TypeCollectorFilters
Strategy interface providing predicates to filter types, fields, and methods from being introspected and contributed to AOT processing.

BeanRegistrationAotProcessor implementations must be registered in a "META-INF/spring/aot.factories"<T> resource. This interface serves as SPI and can be provided through AotServices.

TypeCollector discovers all implementations and applies the combined predicates returned by this interface to filter unwanted reachable types from AOT contribution.

Since:
4.0
Author:
Mark Paluch
  • Method Details

    • classPredicate

      default Predicate<Class<?>> classPredicate()
      Return a predicate to filter types.
      Returns:
      a predicate to filter types.
    • fieldPredicate

      default Predicate<Field> fieldPredicate()
      Return a predicate to filter fields.
      Returns:
      a predicate to filter fields.
    • methodPredicate

      default Predicate<Method> methodPredicate()
      Return a predicate to filter methods for method signature introspection. not provided.
      Returns:
      a predicate to filter methods.