Package org.fcrepo.config
Class ConditionOnProperty<T>
- java.lang.Object
-
- org.fcrepo.config.ConditionOnProperty<T>
-
- All Implemented Interfaces:
org.springframework.context.annotation.Condition
,org.springframework.context.annotation.ConfigurationCondition
- Direct Known Subclasses:
ConditionOnPropertyFalse
,ConditionOnPropertyTrue
public abstract class ConditionOnProperty<T> extends Object implements org.springframework.context.annotation.ConfigurationCondition
This condition enables a bean/configuration when the specified property matches the expected value Implementations must provide a no-arg constructor.- Author:
- pwinckles
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase
getConfigurationPhase()
boolean
matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
-
-
-
Method Detail
-
matches
public boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
- Specified by:
matches
in interfaceorg.springframework.context.annotation.Condition
-
getConfigurationPhase
public org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase getConfigurationPhase()
- Specified by:
getConfigurationPhase
in interfaceorg.springframework.context.annotation.ConfigurationCondition
-
-