Created
January 26, 2017 22:23
-
-
Save GuiSim/1bc6a07a133bc441bd16aea60cbc40fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class MyServiceClass { | |
private AwsClient awsClient; | |
public MyServiceClass(@Named("aws.key") Prop<String> awsKey) { | |
this.awsClient = new AwsClient(awsKey.get()); | |
awsKey.addCallback(() -> this.awsClient = new AwsClient(awsKey.get())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment