Class MongoAotPredicates

java.lang.Object
org.springframework.data.mongodb.aot.MongoAotPredicates

public class MongoAotPredicates extends Object
Collection of predicates to determine dynamic library aspects during AOT computation. Intended for internal usage only.
Since:
4.0
Author:
Christoph Strobl
  • Field Details

    • IS_SIMPLE_TYPE

      public static final Predicate<Class<?>> IS_SIMPLE_TYPE
    • IS_REACTIVE_LIBARARY_AVAILABLE

      public static final Predicate<org.springframework.data.core.ReactiveWrappers.ReactiveLibrary> IS_REACTIVE_LIBARARY_AVAILABLE
    • IS_SYNC_CLIENT_PRESENT

      public static final Predicate<ClassLoader> IS_SYNC_CLIENT_PRESENT
    • IS_REACTIVE_CLIENT_PRESENT

      public static final Predicate<ClassLoader> IS_REACTIVE_CLIENT_PRESENT
  • Constructor Details

    • MongoAotPredicates

      public MongoAotPredicates()
  • Method Details

    • isReactorPresent

      public static boolean isReactorPresent()
      Returns:
      true if the Project Reactor is present.
    • isSyncClientPresent

      public static boolean isSyncClientPresent(@Nullable ClassLoader classLoader)
      Parameters:
      classLoader - can be null.
      Returns:
      true if the MongoClient is present.
      Since:
      4.0
    • isReactiveClientPresent

      public static boolean isReactiveClientPresent(@Nullable ClassLoader classLoader)
      Parameters:
      classLoader - can be null.
      Returns:
      true if the MongoClient is present.
      Since:
      4.3