Class ImageMagickAvailable
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.condition.ConditionOutcomegetMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata) Methods inherited from class org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches
-
Field Details
-
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:
getMatchOutcomein classorg.springframework.boot.autoconfigure.condition.SpringBootCondition
-