org.springframework.boot.autoconfigure.condition

Class OnPropertyListCondition

  • All Implemented Interfaces:
    Condition


    public class OnPropertyListCondition
    extends SpringBootCondition
    Condition that checks if a property whose value is a list is defined in the environment.
    Since:
    2.0.5
    Author:
    Eneias Silva, Stephane Nicoll
    • Constructor Detail

      • OnPropertyListCondition

        protected OnPropertyListCondition(String propertyName,
                                          Supplier<ConditionMessage.Builder> messageBuilder)
        Create a new instance with the property to check and the message builder to use.
        Parameters:
        propertyName - the name of the property
        messageBuilder - a message builder supplier that should provide a fresh instance on each call