Interface Condition
- All Known Subinterfaces:
ConfigurationCondition
public interface Condition
A singleconditionthat must be matched in order for a component to be registered.Conditions are checked immediately before the bean-definition is due to be registered and are free to veto registration based on any criteria that can be determined at that point.
Conditions must follow the same restrictions as
BeanFactoryPostProcessorand take care to never interact with bean instances. For more fine-grained control of conditions that interact with@Configurationbeans consider theConfigurationConditioninterface.- Since:
- 4.0
- Author:
- Phillip Webb
- See Also:
ConfigurationCondition,Conditional,ConditionContext
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmatches(ConditionContext context, AnnotatedTypeMetadata metadata)Determine if the condition matches.
Method Detail
matches
boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata)
Determine if the condition matches.