@Provider Supplier<Credentials> and make sure get() is called lazy, ex not
in the ctor.

On Thursday, January 31, 2013, Andrea Turli wrote:

> In
> labs/vsphere/src/main/java/org/jclouds/vsphere/functions/CreateAndConnectVSphereClient.java:
>
> > +@Singleton
> > +public class CreateAndConnectVSphereClient implements Supplier<ServiceInstance> {
> > +
> > +   @Resource
> > +   @Named(ComputeServiceConstants.COMPUTE_LOGGER)
> > +   protected Logger logger = Logger.NULL;
> > +
> > +   private final Supplier<URI> providerSupplier;
> > +   private ServiceInstance client;
> > +   private final String identity;
> > +   private final String credential;
> > +
> > +    @Inject
> > +    public CreateAndConnectVSphereClient(@Provider Supplier<URI> providerSupplier, @Identity String identity,
> > +            @Credential String credential) {
> > +        this.identity = checkNotNull(identity, "userid");
>
> @adriancole <https://github.com/adriancole> on jclouds 1.6.0-SNAPSHOT
> org.jclouds.rest.annotations.Identity and
> org.jclouds.rest.annotations.Credential have been removed. What shall I use
> now?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jclouds/jclouds/pull/1002/files#r2844571>.
>
>