public class OnDatabaseInitializationCondition extends SpringBootCondition
DatabaseInitializationMode| Constructor and Description |
|---|
OnDatabaseInitializationCondition(java.lang.String name,
java.lang.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(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.
|
anyMatches, logOutcome, matches, matchespublic OnDatabaseInitializationCondition(java.lang.String name,
java.lang.String... propertyNames)
name - the name of the componentpropertyNames - the properties to check (in order)public ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
SpringBootConditiongetMatchOutcome in class SpringBootConditioncontext - the condition contextmetadata - the annotation metadata