com.sun.jersey.server.impl.inject
Class ServerInjectableProviderFactory

java.lang.Object
  extended by com.sun.jersey.core.spi.factory.InjectableProviderFactory
      extended by com.sun.jersey.server.impl.inject.ServerInjectableProviderFactory
All Implemented Interfaces:
ServerInjectableProviderContext, InjectableProviderContext

public final class ServerInjectableProviderFactory
extends InjectableProviderFactory
implements ServerInjectableProviderContext

Author:
Paul.Sandoz@Sun.Com

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.jersey.spi.inject.InjectableProviderContext
InjectableProviderContext.InjectableScopePair
 
Constructor Summary
ServerInjectableProviderFactory()
           
 
Method Summary
 List<Injectable> getInjectable(AccessibleObject ao, List<Parameter> ps, ComponentScope s)
          Get a list of injectable given a list of parameter.
 Injectable getInjectable(AccessibleObject ao, Parameter p, ComponentScope s)
          Get an injectable given a parameter.
 List<Injectable> getInjectable(List<Parameter> ps, ComponentScope s)
          Get a list of injectable given a list of parameter.
 Injectable getInjectable(Parameter p, ComponentScope s)
          Get an injectable given a parameter.
 InjectableProviderContext.InjectableScopePair getInjectableiWithScope(AccessibleObject ao, Parameter p, ComponentScope s)
          Get an injectable given a parameter.
 InjectableProviderContext.InjectableScopePair getInjectableiWithScope(Parameter p, ComponentScope s)
          Get an injectable given a parameter.
 boolean isParameterTypeRegistered(Parameter p)
          Check if a parameter type is registered for injection.
 
Methods inherited from class com.sun.jersey.core.spi.factory.InjectableProviderFactory
add, configure, configureProviders, getInjectable, getInjectable, getInjectableWithScope, isAnnotationRegistered, isInjectableProviderRegistered, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.jersey.spi.inject.InjectableProviderContext
getInjectable, getInjectable, getInjectableWithScope, isAnnotationRegistered, isInjectableProviderRegistered
 

Constructor Detail

ServerInjectableProviderFactory

public ServerInjectableProviderFactory()
Method Detail

isParameterTypeRegistered

public boolean isParameterTypeRegistered(Parameter p)
Description copied from interface: ServerInjectableProviderContext
Check if a parameter type is registered for injection.

Specified by:
isParameterTypeRegistered in interface ServerInjectableProviderContext
Parameters:
p - the parameter, from which the parameter type is obtained.
Returns:
if registered, otherwise false.

getInjectableiWithScope

public InjectableProviderContext.InjectableScopePair getInjectableiWithScope(Parameter p,
                                                                             ComponentScope s)
Description copied from interface: ServerInjectableProviderContext
Get an injectable given a parameter.

Specified by:
getInjectableiWithScope in interface ServerInjectableProviderContext
Parameters:
p - the parameter.
s - the scope for which the injectable will be used
Returns:
the injectable and scope, otherwise null if an injectable could not be found.

getInjectableiWithScope

public InjectableProviderContext.InjectableScopePair getInjectableiWithScope(AccessibleObject ao,
                                                                             Parameter p,
                                                                             ComponentScope s)
Description copied from interface: ServerInjectableProviderContext
Get an injectable given a parameter.

Specified by:
getInjectableiWithScope in interface ServerInjectableProviderContext
Parameters:
ao - the accessible object that is the target of injection
p - the parameter.
s - the scope for which the injectable will be used
Returns:
the injectable and scope, otherwise null if an injectable could not be found.

getInjectable

public Injectable getInjectable(Parameter p,
                                ComponentScope s)
Description copied from interface: ServerInjectableProviderContext
Get an injectable given a parameter.

Specified by:
getInjectable in interface ServerInjectableProviderContext
Parameters:
p - the parameter.
s - the scope for which the injectable will be used
Returns:
the injectable, otherwise null if an injectable could not be found.

getInjectable

public Injectable getInjectable(AccessibleObject ao,
                                Parameter p,
                                ComponentScope s)
Description copied from interface: ServerInjectableProviderContext
Get an injectable given a parameter.

Specified by:
getInjectable in interface ServerInjectableProviderContext
Parameters:
ao - the accessible object that is the target of injection
p - the parameter.
s - the scope for which the injectable will be used
Returns:
the injectable, otherwise null if an injectable could not be found.

getInjectable

public List<Injectable> getInjectable(List<Parameter> ps,
                                      ComponentScope s)
Description copied from interface: ServerInjectableProviderContext
Get a list of injectable given a list of parameter.

Specified by:
getInjectable in interface ServerInjectableProviderContext
Parameters:
ps - the list of parameter.
s - the scope for which the injectable will be used
Returns:
the list of injectable, if an injectable for a parameter could not be found the corresponding element in the list will be null.

getInjectable

public List<Injectable> getInjectable(AccessibleObject ao,
                                      List<Parameter> ps,
                                      ComponentScope s)
Description copied from interface: ServerInjectableProviderContext
Get a list of injectable given a list of parameter.

Specified by:
getInjectable in interface ServerInjectableProviderContext
Parameters:
ao - the accessible object that is the target of injection
ps - the list of parameter.
s - the scope for which the injectable will be used
Returns:
the list of injectable, if an injectable for a parameter could not be found the corresponding element in the list will be null.


Copyright © 2013 Oracle Corporation. All Rights Reserved.