Class NotInNativeImage

java.lang.Object
io.micronaut.context.condition.NotInNativeImage
All Implemented Interfaces:
Condition, Predicate<ConditionContext>

public class NotInNativeImage extends Object implements Condition
Condition to hide parts of an application that only work when running on the JVM. Internal implementation is identical to {@code if (!ImageInfo.inImageCode()). @author Sergio del Amo @since 4.8.0
  • Constructor Details

    • NotInNativeImage

      public NotInNativeImage()
  • Method Details

    • matches

      public boolean matches(ConditionContext context)
      Description copied from interface: Condition
      Check whether a specific condition is met.
      Specified by:
      matches in interface Condition
      Parameters:
      context - The condition context
      Returns:
      True if has been met