Merge pull request #1225 from dralves/oauth-named-annotations

Added @Named annotation to oauth async api
This commit is contained in:
Adrian Cole 2013-01-23 10:22:22 -08:00
commit 9a47694f1a
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)