Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Commit 39bea17

Browse files
committed
Add DeprecatedConfigurationProperty annotation
1 parent 0bb8d6c commit 39bea17

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

spring-cloud-aws-parameter-store-config/src/main/java/org/springframework/cloud/aws/paramstore/AwsParamStoreProperties.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2013-2019 the original author or authors.
2+
* Copyright 2013-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
1919
import java.util.regex.Pattern;
2020

2121
import org.springframework.boot.context.properties.ConfigurationProperties;
22+
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
2223
import org.springframework.util.StringUtils;
2324
import org.springframework.validation.Errors;
2425
import org.springframework.validation.Validator;
@@ -29,6 +30,7 @@
2930
*
3031
* @author Joris Kuipers
3132
* @author Matej Nedic
33+
* @author Eddú Meléndez
3234
* @since 2.0.0
3335
*/
3436
@ConfigurationProperties(AwsParamStoreProperties.CONFIG_PREFIX)
@@ -115,6 +117,7 @@ public void validate(Object target, Errors errors) {
115117
}
116118
}
117119

120+
@DeprecatedConfigurationProperty(replacement = "spring.cloud.aws.parameterstore.prefix")
118121
public String getPrefix() {
119122
return prefix;
120123
}
@@ -123,6 +126,7 @@ public void setPrefix(String prefix) {
123126
this.prefix = prefix;
124127
}
125128

129+
@DeprecatedConfigurationProperty(replacement = "spring.cloud.aws.parameterstore.default-context")
126130
public String getDefaultContext() {
127131
return defaultContext;
128132
}
@@ -131,6 +135,7 @@ public void setDefaultContext(String defaultContext) {
131135
this.defaultContext = defaultContext;
132136
}
133137

138+
@DeprecatedConfigurationProperty(replacement = "spring.cloud.aws.parameterstore.profile-separator")
134139
public String getProfileSeparator() {
135140
return profileSeparator;
136141
}
@@ -139,6 +144,7 @@ public void setProfileSeparator(String profileSeparator) {
139144
this.profileSeparator = profileSeparator;
140145
}
141146

147+
@DeprecatedConfigurationProperty(replacement = "spring.cloud.aws.parameterstore.fail-fast")
142148
public boolean isFailFast() {
143149
return failFast;
144150
}
@@ -147,6 +153,7 @@ public void setFailFast(boolean failFast) {
147153
this.failFast = failFast;
148154
}
149155

156+
@DeprecatedConfigurationProperty(replacement = "spring.cloud.aws.parameterstore.name")
150157
public String getName() {
151158
return name;
152159
}
@@ -155,6 +162,7 @@ public void setName(String name) {
155162
this.name = name;
156163
}
157164

165+
@DeprecatedConfigurationProperty(replacement = "spring.cloud.aws.parameterstore.enabled")
158166
public boolean isEnabled() {
159167
return enabled;
160168
}
@@ -163,6 +171,7 @@ public void setEnabled(boolean enabled) {
163171
this.enabled = enabled;
164172
}
165173

174+
@DeprecatedConfigurationProperty(replacement = "spring.cloud.aws.parameterstore.region")
166175
public String getRegion() {
167176
return region;
168177
}

0 commit comments

Comments
 (0)