Skip to content

Commit 2df450c

Browse files
Rename serverKey to sdkKey to be consistent with other SDKs (#47)
1 parent 2369d92 commit 2df450c

File tree

16 files changed

+60
-60
lines changed

16 files changed

+60
-60
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class MyClass {
4848
private DVCCloudClient dvcCloudClient;
4949

5050
public MyClass() {
51-
dvcCloudClient = new DVCCloudClient("your_server_key");
51+
dvcCloudClient = new DVCCloudClient("YOUR_DVC_SERVER_SDK_KEY");
5252
}
5353
}
5454
```
@@ -62,7 +62,7 @@ public class MyClass {
6262
private DVCLocalClient dvcLocalClient;
6363

6464
public MyClass() {
65-
dvcLocalClient = new DVCLocalClient("your_server_key");
65+
dvcLocalClient = new DVCLocalClient("YOUR_DVC_SERVER_SDK_KEY");
6666
}
6767
}
6868
```

docs/DVC.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class MyClass {
2222
private DVCClient dvcClient;
2323

2424
public MyClass() {
25-
dvcClient = new DVCClient("your_server_key");
25+
dvcClient = new DVCClient("YOUR_DVC_SERVER_SDK_KEY");
2626
}
2727

2828
public void allFeatures() {
@@ -61,7 +61,7 @@ public class MyClass {
6161
private DVCClient dvcClient;
6262

6363
public MyClass() {
64-
dvcClient = new DVCClient("your_server_key");
64+
dvcClient = new DVCClient("YOUR_DVC_SERVER_SDK_KEY");
6565
}
6666

6767
public void setFlag() {
@@ -109,7 +109,7 @@ public class MyClass {
109109
private DVCClient dvcClient;
110110

111111
public MyClass() {
112-
dvcClient = new DVCClient("your_server_key");
112+
dvcClient = new DVCClient("YOUR_DVC_SERVER_SDK_KEY");
113113
}
114114

115115
public void allVariables() {
@@ -148,7 +148,7 @@ public class MyClass {
148148
private DVCClient dvcClient;
149149

150150
public MyClass() {
151-
dvcClient = new DVCClient("your_server_key");
151+
dvcClient = new DVCClient("YOUR_DVC_SERVER_SDK_KEY");
152152
}
153153

154154
public void addAnEvent() {

example-cloud/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ being used
99

1010
Rerun the example after creating a feature and a variable and that will be shown
1111

12-
replace application.properties devcycle.serverKey with your server SDK key
12+
replace application.properties devcycle.sdkKey with your server SDK key

example-cloud/src/main/java/com/devcycle/example/java/sdk/app/configuration/HelloWorldConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
@ConfigurationProperties(prefix = "devcycle")
1313
public class HelloWorldConfiguration {
1414

15-
private String serverKey;
15+
private String sdkKey;
1616

17-
@Bean("devcycleServerKey")
18-
public String getServerKey() {
19-
return serverKey;
17+
@Bean("devcycleSDKKey")
18+
public String getSdkKey() {
19+
return sdkKey;
2020
}
2121
}

example-cloud/src/main/java/com/devcycle/example/java/sdk/app/controller/HelloWorld.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public class HelloWorld {
2020

2121
private DVCCloudOptions dvcCloudOptions = DVCCloudOptions.builder().enableEdgeDB(false).build();
2222

23-
public HelloWorld(@Qualifier("devcycleServerKey") String serverKey) {
24-
dvcCloud = new DVCCloudClient(serverKey, dvcCloudOptions);
23+
public HelloWorld(@Qualifier("devcycleSDKKey") String sdkKey) {
24+
dvcCloud = new DVCCloudClient(sdkKey, dvcCloudOptions);
2525
}
2626

2727
@Value("${spring.application.name}")

example-cloud/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ spring.thymeleaf.suffix=.html
66
spring.application.name=Default Flag
77
spring.application.oops=Default Flag when variation could not be fetched
88

9-
devcycle.serverKey=your SDK Key
9+
devcycle.sdkKey=your SDK Key

example-local/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ being used
99

1010
Rerun the example after creating a feature and a variable and that will be shown
1111

12-
replace application.properties devcycle.serverKey with your server SDK key
12+
replace application.properties devcycle.sdkKey with your server SDK key

example-local/src/main/java/com/devcycle/example/java/sdk/app/configuration/HelloWorldConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
@ConfigurationProperties(prefix = "devcycle")
1313
public class HelloWorldConfiguration {
1414

15-
private String serverKey;
15+
private String sdkKey;
1616

17-
@Bean("devcycleServerKey")
18-
public String getServerKey() {
19-
return serverKey;
17+
@Bean("devcycleSDKKey")
18+
public String getSdkKey() {
19+
return sdkKey;
2020
}
2121
}

example-local/src/main/java/com/devcycle/example/java/sdk/app/controller/HelloWorld.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public class HelloWorld {
2424
.eventFlushIntervalMS(5000)
2525
.build();
2626

27-
public HelloWorld(@Qualifier("devcycleServerKey") String serverKey) {
28-
dvcClient = new DVCLocalClient(serverKey, dvcLocalOptions);
27+
public HelloWorld(@Qualifier("devcycleSDKKey") String sdkKey) {
28+
dvcClient = new DVCLocalClient(sdkKey, dvcLocalOptions);
2929
}
3030

3131
@Value("${spring.application.name}")

example-local/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ spring.thymeleaf.suffix=.html
66
spring.application.name=Default Flag
77
spring.application.oops=Default Flag when variation could not be fetched
88

9-
devcycle.serverKey=your SDK Key
9+
devcycle.sdkKey=your SDK Key

0 commit comments

Comments
 (0)