Added @Named annotation to oauth async api

This commit is contained in:
David Ribeiro Alves 2013-01-22 15:33:28 -06:00
parent 7711ca0d60
commit 395d8f97b2
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ import org.jclouds.rest.AuthorizationException;
import org.jclouds.rest.annotations.BinderParam;
import org.jclouds.rest.annotations.Endpoint;
import javax.inject.Named;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.core.MediaType;
@ -46,6 +47,7 @@ public interface OAuthAsyncApi {
/**
* @see OAuthApi#authenticate(TokenRequest)
*/
@Named("authenticate")
@POST
@Consumes(MediaType.APPLICATION_JSON)
public ListenableFuture<Token> authenticate(@BinderParam(OAuthTokenBinder.class) TokenRequest tokenRequest)