Class TemplatingExistsCondition

java.lang.Object
org.broadleafcommerce.presentation.condition.TemplatingExistsCondition
All Implemented Interfaces:
org.springframework.context.annotation.Condition

public class TemplatingExistsCondition extends Object implements org.springframework.context.annotation.Condition
A condition that checks for the existence of a Thymeleaf class to indicate whether or not templating is active.
Author:
Phillip Verheyden (phillipuniverse)
  • Field Details

    • CONDITION_CLASSES

      public static final String[] CONDITION_CLASSES
  • Constructor Details

    • TemplatingExistsCondition

      public TemplatingExistsCondition()
  • Method Details

    • matches

      public boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Specified by:
      matches in interface org.springframework.context.annotation.Condition