Class OnDatabaseInitializationCondition
java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.autoconfigure.sql.init.OnDatabaseInitializationCondition
- All Implemented Interfaces:
 Condition
Condition that checks if the database initialization of a particular component should
 be considered.
- Since:
 - 2.6.2
 - Author:
 - Stephane Nicoll
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionOnDatabaseInitializationCondition(String name, String... propertyNames) Create a new instance with the name of the component and the property names to check, in order. - 
Method Summary
Modifier and TypeMethodDescriptiongetMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) Determine the outcome of the match along with suitable log output.Methods inherited from class org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches 
- 
Constructor Details
- 
OnDatabaseInitializationCondition
Create a new instance with the name of the component and the property names to check, in order. If a property is set, its value is used to determine the outcome and remaining properties are not tested.- Parameters:
 name- the name of the componentpropertyNames- the properties to check (in order)
 
 - 
 - 
Method Details
- 
getMatchOutcome
Description copied from class:SpringBootConditionDetermine the outcome of the match along with suitable log output.- Specified by:
 getMatchOutcomein classSpringBootCondition- Parameters:
 context- the condition contextmetadata- the annotation metadata- Returns:
 - the condition outcome
 
 
 -