Class Deprecation
java.lang.Object
org.springframework.boot.configurationmetadata.Deprecation
- All Implemented Interfaces:
Serializable
Indicate that a property is deprecated. Provide additional information about the
deprecation.
- Since:
- 1.3.0
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()Define theDeprecation.Levelof deprecation.A reason why the related property is deprecated, if any.The full name of the property that replaces the related deprecated property, if any.A single-line, single-sentence reason why the related property is deprecated, if any.voidsetLevel(Deprecation.Level level) voidvoidsetReplacement(String replacement) voidsetShortReason(String shortReason) toString()
-
Constructor Details
-
Deprecation
public Deprecation()
-
-
Method Details
-
getLevel
Define theDeprecation.Levelof deprecation.- Returns:
- the deprecation level
-
setLevel
-
getReason
A reason why the related property is deprecated, if any. Can be multi-lines.- Returns:
- the deprecation reason
- See Also:
-
setReason
-
getShortReason
A single-line, single-sentence reason why the related property is deprecated, if any.- Returns:
- the short deprecation reason
- See Also:
-
setShortReason
-
getReplacement
The full name of the property that replaces the related deprecated property, if any.- Returns:
- the replacement property name
-
setReplacement
-
toString
-