Class OnDatabaseInitializationCondition

java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.sql.autoconfigure.init.OnDatabaseInitializationCondition
All Implemented Interfaces:
org.springframework.context.annotation.Condition

public abstract class OnDatabaseInitializationCondition extends org.springframework.boot.autoconfigure.condition.SpringBootCondition
Condition that checks if the database initialization of a particular component should be considered.
Since:
4.0.0
See Also:
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Create a new instance with the name of the component and the property names to check, in order.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.boot.autoconfigure.condition.ConditionOutcome
    getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
     

    Methods inherited from class org.springframework.boot.autoconfigure.condition.SpringBootCondition

    anyMatches, logOutcome, matches, matches

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OnDatabaseInitializationCondition

      protected OnDatabaseInitializationCondition(String name, String... propertyNames)
      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 component
      propertyNames - the properties to check (in order)
  • Method Details

    • getMatchOutcome

      public org.springframework.boot.autoconfigure.condition.ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Specified by:
      getMatchOutcome in class org.springframework.boot.autoconfigure.condition.SpringBootCondition