com.sun.jersey.oauth.server
Class OAuthProviderInjectionProvider

java.lang.Object
  extended by com.sun.jersey.oauth.server.OAuthProviderInjectionProvider
All Implemented Interfaces:
Injectable<OAuthProvider>, InjectableProvider<Context,Type>

@Provider
@ConstrainedTo(value=ServerSide.class)
public class OAuthProviderInjectionProvider
extends Object
implements Injectable<OAuthProvider>, InjectableProvider<Context,Type>

Provider that handles the injection of the application-specific OAuthProvider implementation.

Author:
Martin Matula

Constructor Summary
OAuthProviderInjectionProvider()
           
 
Method Summary
 Injectable getInjectable(ComponentContext cc, Context a, Type t)
          Get an injectable.
 ComponentScope getScope()
          Get the scope of the injectable provider.
 OAuthProvider getValue()
          Get the injectable value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthProviderInjectionProvider

public OAuthProviderInjectionProvider()
Method Detail

getValue

public OAuthProvider getValue()
Description copied from interface: Injectable
Get the injectable value.

Specified by:
getValue in interface Injectable<OAuthProvider>
Returns:
the injectable value

getScope

public ComponentScope getScope()
Description copied from interface: InjectableProvider
Get the scope of the injectable provider.

Specified by:
getScope in interface InjectableProvider<Context,Type>
Returns:
the scope.

getInjectable

public Injectable getInjectable(ComponentContext cc,
                                Context a,
                                Type t)
Description copied from interface: InjectableProvider
Get an injectable.

Specified by:
getInjectable in interface InjectableProvider<Context,Type>
Parameters:
cc - the injectable context
a - the annotation instance
t - the context instance
Returns:
an Injectable instance, otherwise null if an instance cannot be created.


Copyright © 2013 Oracle Corporation. All Rights Reserved.