Re: How to retrieve the ComputeServiceContext from api/provider

2015-06-24 Thread Andrea Turli
No particular reasons, just easier, I guess. Thanks Il giorno mer 24 giu 2015 22:15 Andrew Phillips ha scritto: > > great question. Basically I need to create a new ContextBuilder from > inside > > the ComputeServiceAdapter of the providerA to invoke the APIs of a > > providerB. > > Ah, interes

Re: How to retrieve the ComputeServiceContext from api/provider

2015-06-24 Thread Andrew Phillips
great question. Basically I need to create a new ContextBuilder from inside the ComputeServiceAdapter of the providerA to invoke the APIs of a providerB. Ah, interesting. Any reason why you need to create the context for providerB on the fly, rather than simply injecting a providerA and prov

Re: How to retrieve the ComputeServiceContext from api/provider

2015-06-24 Thread Andrea Turli
Andrew, great question. Basically I need to create a new ContextBuilder from inside the ComputeServiceAdapter of the providerA to invoke the APIs of a providerB. Best, Andrea On Wed, Jun 24, 2015 at 7:50 PM Andrew Phillips wrote: > > I think a simple solution can be to inject > > > > @Provider

Re: How to retrieve the ComputeServiceContext from api/provider

2015-06-24 Thread Andrew Phillips
I think a simple solution can be to inject @Provider Supplier endpoint, @Provider Supplier creds Seems like a good option, indeed - into the ComputeServiceAdapter implementation, I presume? Are you already injecting the underlying API(s) directly into the adapter? If so, would be curious

Re: How to retrieve the ComputeServiceContext from api/provider

2015-06-24 Thread Andrea Turli
I think a simple solution can be to inject @Provider Supplier endpoint, @Provider Supplier creds where needed. Thanks, Andrea On Wed, Jun 24, 2015 at 5:47 PM Andrea Turli wrote: > Hi, > > I need to access the values of the endpoint, identity and credentials of a > provider from inside the pro

How to retrieve the ComputeServiceContext from api/provider

2015-06-24 Thread Andrea Turli
Hi, I need to access the values of the endpoint, identity and credentials of a provider from inside the provider's ComputeServiceAdapter itself. What is the recommended way in jclouds? Best, Andrea