java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
com.broadleafcommerce.asset.service.autoconfigure.condition.ImageMagickAvailable
All Implemented Interfaces:
org.springframework.context.annotation.Condition

public class ImageMagickAvailable extends org.springframework.boot.autoconfigure.condition.SpringBootCondition
SpringBootCondition based upon whether the ImageMagick commandline utility is available.

Delegates to ImageMagickDetector for the detection behavior. By default, ImageMagickAvailable uses DefaultImageMagickDetector, but to override this you may create an alternative implementation and specify its FQN as the value of the environment property IMAGE_MAGICK_DETECTOR_OVERRIDE_ENV_PROPERTY.

Author:
Samarth Dhruva (samarthd)
See Also:
  • Field Details

    • IMAGE_MAGICK_DETECTOR_OVERRIDE_ENV_PROPERTY

      public static final String IMAGE_MAGICK_DETECTOR_OVERRIDE_ENV_PROPERTY
      See Also:
  • Constructor Details

    • ImageMagickAvailable

      public ImageMagickAvailable()
  • Method Details

    • getMatchOutcome

      public org.springframework.boot.autoconfigure.condition.ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Specified by:
      getMatchOutcome in class org.springframework.boot.autoconfigure.condition.SpringBootCondition