-
Notifications
You must be signed in to change notification settings - Fork 92
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Consider for instance SSMProvider
- if a TransformationManager
is not supplied, a default will not be provided. You can contrast this with CacheManager
.
Lines 51 to 63 in fb14bcf
public SSMProvider build() { | |
if (cacheManager == null) { | |
cacheManager = new CacheManager(); | |
} | |
SSMProvider provider; | |
if (client == null) { | |
client = createClient(); | |
} | |
provider = new SSMProvider(cacheManager, transformationManager, client); | |
return provider; | |
} |
This causes issues in our parameters example, which will throw due to a lack of TransformationManager
:
Line 59 in fb14bcf
MyObject jsonObj = ssmProvider.withTransformation(json).get("/powertools-java/sample/keyjson", MyObject.class); |
Lines 63 to 64 in fb14bcf
Map<String, String> secretJson = | |
secretsProvider.withTransformation(json).get("/powertools-java/userpwd", Map.class); |
What were you trying to accomplish?
Expected Behavior
V2 parameters example should work.
Possible Solution
A default TransformationManager should be provided.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working