>
> public abstract class BaseProfitBricksRequestBinder<T> implements MapBinder {
>
> + protected final String endpointPath = "/rest/v2";
Don't hardcode this. Extract it from the provider metadata. To do so:
* Add a parameter to the constructor: `Supplier<URI> endpointSupplier`. This
will provide the endpoint configured in the metadata.
* Modify subclasses to inject the endpoint supplier, by adding the supplier
parameter as: `@Provider Supplier<URI> endpointSupplier` (and making sure the
constructor is annotated with `@Inject`). Note that subclasses add the
qualifier annotation to get the right supplier injected. It would be redundant
in the parent class as it is abstract and shouldn't care about implementations
using injection or not.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/245/files#r55598344