Class CachingEnabledCondition

  • All Implemented Interfaces:
    org.springframework.context.annotation.Condition

    public class CachingEnabledCondition
    extends Object
    implements org.springframework.context.annotation.Condition
    A Spring Condition that matches if the EnableCaching annotation is specified in the application context.
    Since:
    3.0
    Author:
    Gunnar Hillert
    • Constructor Detail

      • CachingEnabledCondition

        public CachingEnabledCondition()
    • Method Detail

      • 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