null to infer one
PropertySourceFactory to use,
or null to use the default
null to use the default encoding
PropertySource.
org.springframework.core.env.PropertySource , org.springframework.context.annotation.PropertySource
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final boolean | ignoreResourceNotFound
Record Component accessed by ignoreResourceNotFound(). whether a failure to find a property resource should be ignored |
| private final List | locations
Record Component accessed by locations(). the locations to consider |
| private final String | |
| private final Class | propertySourceFactory
Record Component accessed by propertySourceFactory(). the type ofPropertySourceFactory to use,
or null to use the default
|
| Access | Constructor and Description |
|---|---|
| public | PropertySourceDescriptor(String...
the locations to consider locations)Create a descriptor with the specified locations. |
| public | PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public boolean | ignoreResourceNotFound()
Record Component getter of ignoreResourceNotFound.
Record Component whether a failure to find a property resource should be ignored |
| public List | |
| public String | |
| public Class | propertySourceFactory()
Record Component getter of propertySourceFactory.
Record Component
the type of |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| encoding | back to summary |
|---|---|
| private final String encoding Record Component accessed by encoding(). the encoding, or | |
| ignoreResourceNotFound | back to summary |
|---|---|
| private final boolean ignoreResourceNotFound Record Component accessed by ignoreResourceNotFound(). whether a failure to find a property resource should be ignored | |
| locations | back to summary |
|---|---|
| private final List<String> locations Record Component accessed by locations(). the locations to consider | |
| name | back to summary |
|---|---|
| private final String name Record Component accessed by name(). the name of the property source, or | |
| propertySourceFactory | back to summary |
|---|---|
| private final Class<? extends PropertySourceFactory> propertySourceFactory Record Component accessed by propertySourceFactory(). the type of | |
| PropertySourceDescriptor | back to summary |
|---|---|
| public PropertySourceDescriptor(String... locations) Create a descriptor with the specified locations.
| |
| PropertySourceDescriptor | back to summary |
|---|---|
| public PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) | |
| encoding | back to summary |
|---|---|
| public String encoding() Record Component getter of encoding.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| ignoreResourceNotFound | back to summary |
|---|---|
| public boolean ignoreResourceNotFound() Record Component getter of ignoreResourceNotFound.
| |
| locations | back to summary |
|---|---|
| public List Record Component getter of locations.
| |
| name | back to summary |
|---|---|
| public String name() Record Component getter of name.
| |
| propertySourceFactory | back to summary |
|---|---|
| public Class Record Component getter of propertySourceFactory.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |