> +
> +import javax.inject.Inject;
> +import javax.inject.Singleton;
> +import java.io.IOException;
> +
> +@Singleton
> +public class ConfigurationSupplier implements Supplier<Configuration> {
> + private final Configuration configuration;
> +
> + @Inject
> + public ConfigurationSupplier(@Provider Supplier<Credentials> creds) {
> + Configuration configuration ;
> + try {
> + configuration =
> PublishSettingsLoader.createManagementConfiguration(creds.get().credential,
> creds.get().identity);
> + } catch (IOException e) {
> + e.printStackTrace();
Use a logger if there is something to log, but remove this.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/132/files#r24748328