Class ResourceCondition

java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.autoconfigure.condition.ResourceCondition
All Implemented Interfaces:
Condition
Direct Known Subclasses:
HazelcastConfigResourceCondition

public abstract class ResourceCondition extends SpringBootCondition
SpringBootCondition used to check if a resource can be found using a configurable property and optional default location(s).
Since:
1.3.0
Author:
Stephane Nicoll, Phillip Webb, Madhura Bhave
  • Constructor Details

    • ResourceCondition

      protected ResourceCondition(String name, String property, String... resourceLocations)
      Create a new condition.
      Parameters:
      name - the name of the component
      property - the configuration property
      resourceLocations - default location(s) where the configuration file can be found if the configuration key is not specified
      Since:
      2.0.0
  • Method Details