Class ConfigDataResource
java.lang.Object
org.springframework.boot.context.config.ConfigDataResource
- Direct Known Subclasses:
ConfigTreeConfigDataResource
,StandardConfigDataResource
A single resource from which
ConfigData
can be loaded. Implementations must
implement a valid equals
, hashCode
and
toString
methods.- Since:
- 2.4.0
-
Constructor Summary
ModifierConstructorDescriptionCreate a new non-optionalConfigDataResource
instance.protected
ConfigDataResource
(boolean optional) Create a newConfigDataResource
instance. -
Method Summary
-
Constructor Details
-
ConfigDataResource
public ConfigDataResource()Create a new non-optionalConfigDataResource
instance. -
ConfigDataResource
protected ConfigDataResource(boolean optional) Create a newConfigDataResource
instance.- Parameters:
optional
- if the resource is optional- Since:
- 2.4.6
-