[ 
https://issues.apache.org/jira/browse/JCLOUDS-40?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13657176#comment-13657176
 ] 

Ignasi Barrera commented on JCLOUDS-40:
---------------------------------------

A similar method already exists in the ChefContext, to unwrap the different 
underlying apis (ChefApi, HostedChefApi or PrivateChefApi):

   @Override
   public <A extends ChefApi> A getApi(Class<A> apiClass) {
      TypeToken<ApiContext<A>> contextToken = new 
TypeToken<ApiContext<A>>(delegate().getClass()) {
         private static final long serialVersionUID = 1L;
      }.where(new TypeParameter<A>() {
      }, TypeToken.of(apiClass));
      return unwrap(contextToken).getApi();
   }

                
> remove Async interface from all apis and providers
> --------------------------------------------------
>
>                 Key: JCLOUDS-40
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-40
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-blobstore, jclouds-core, jclouds-labs, 
> jclouds-labs-aws, jclouds-labs-google, jclouds-labs-openstack
>    Affects Versions: 1.7.0
>            Reporter: Adrian Cole
>             Fix For: 1.7.0
>
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> In jclouds 1.6.0, we deprecated all async interfaces.  Let's use this issue 
> and subtasks to track removing it and all supporting code from 1.7.x (current 
> master)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to