Skip to content

Commit bf73451

Browse files
committed
Update from setter- to ctor-based injection for bamboo 7.0.0
1 parent 90a0954 commit bf73451

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/com/codedx/plugins/bamboo/ServerConfigManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import com.atlassian.bamboo.bandana.PlanAwareBandanaContext;
44
import com.atlassian.bandana.BandanaContext;
55
import com.atlassian.bandana.BandanaManager;
6-
import com.codedx.plugins.bamboo.security.SSLContextFactory;
76
import com.codedx.client.ApiClient;
7+
import com.codedx.plugins.bamboo.security.SSLContextFactory;
88
import org.apache.log4j.Logger;
99
import org.glassfish.jersey.client.JerseyClientBuilder;
1010

@@ -24,8 +24,8 @@ public class ServerConfigManager implements Serializable {
2424
private static final String BANDANA_KEY = "com.codedx.bambooplugin:Config";
2525

2626
// This gets called automatically
27-
public void setBandanaManager(BandanaManager bandanaManager) {
28-
this.bandanaManager = bandanaManager;
27+
public ServerConfigManager(BandanaManager bandanaManager) {
28+
ServerConfigManager.bandanaManager = bandanaManager;
2929
}
3030

3131
public static String getUrl() {

0 commit comments

Comments
 (0)