-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how is PartialServiceConfiguration class being used? #32
Comments
Can we make |
What's the use-case for this? |
Having a PartialServiceConfiguration declare outside the service discovery block like multipass'
or slate's postgate data source config
It'd be great if we can specify service configuration outside of service discovery without requiring ssl block. Unless we are encouraging teams to only take service configuration from service discovery? |
In order to use propagateDefaults, you'd need a handle on a ServiceConfigBlock; if you have one of those, why not use ServiceConfigurationFactory#get ? |
ServiceConfigBlock may not have the corresponding service config block for the PartialServiceConfiguration. I wonder if we should expose a convenient method of converting PartialServiceConfiguration to a ServiceConfiguration by filling in the defaults that are not present, which is what propagateDefaults does mostly |
Such a method exists: build a custom ServiceConfigBlock and then call get(). |
|
I had to do this also, workaround is to build a
@uschi2000 is this what you intend? |
We can add a static method ServiceConfigurationFactory that turns a partial config into a full one, or throws if not all required fields are set. |
+1, created a pr for this https://github.com/palantir/http-remoting-api/pull/54 |
ClientConfiguration can be created using ServiceConfiguration and there is no easy way to convert PartialServiceConfiguration to ServiceConfiguration or vice versa even though they are pretty much identical except for the absence of
security
. I would like know more about how we intend to use the PartialServiceConfiguration classEDIT: saw
ServiceConfigurationFactor.propagateDefaults
and answered my question above.The text was updated successfully, but these errors were encountered: