public class OnDatabaseInitializationCondition extends SpringBootCondition
DatabaseInitializationMode| Constructor and Description |
|---|
OnDatabaseInitializationCondition(String name,
String... propertyNames)
Create a new instance with the name of the component and the property names to
check, in order.
|
| Modifier and Type | Method and Description |
|---|---|
ConditionOutcome |
getMatchOutcome(ConditionContext context,
AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.
|
anyMatches, logOutcome, matches, matchespublic OnDatabaseInitializationCondition(String name, String... propertyNames)
name - the name of the componentpropertyNames - the properties to check (in order)public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata)
SpringBootConditiongetMatchOutcome in class SpringBootConditioncontext - the condition contextmetadata - the annotation metadata