Package org.fcrepo.camel.common.config
Class ConditionOnProperty<T>
java.lang.Object
org.fcrepo.camel.common.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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.context.annotation.ConfigurationCondition
org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.annotation.ConfigurationCondition.ConfigurationPhasebooleanmatches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
-
Constructor Details
-
ConditionOnProperty
-
-
Method Details
-
matches
public boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata) - Specified by:
matchesin interfaceorg.springframework.context.annotation.Condition
-
getConfigurationPhase
public org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase getConfigurationPhase()- Specified by:
getConfigurationPhasein interfaceorg.springframework.context.annotation.ConfigurationCondition
-