com.sun.jersey.server.impl.inject
Interface ServerInjectableProviderContext

All Superinterfaces:
InjectableProviderContext
All Known Implementing Classes:
ServerInjectableProviderFactory

public interface ServerInjectableProviderContext
extends InjectableProviderContext

The server context to obtain Injectable instances.

Author:
Paul.Sandoz@Sun.Com

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.jersey.spi.inject.InjectableProviderContext
InjectableProviderContext.InjectableScopePair
 
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 interface com.sun.jersey.spi.inject.InjectableProviderContext
getInjectable, getInjectable, getInjectableWithScope, isAnnotationRegistered, isInjectableProviderRegistered
 

Method Detail

isParameterTypeRegistered

boolean isParameterTypeRegistered(Parameter p)
Check if a parameter type is registered for injection.

Parameters:
p - the parameter, from which the parameter type is obtained.
Returns:
if registered, otherwise false.

getInjectable

Injectable getInjectable(Parameter p,
                         ComponentScope s)
Get an injectable given a parameter.

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

Injectable getInjectable(AccessibleObject ao,
                         Parameter p,
                         ComponentScope s)
Get an injectable given a parameter.

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.

getInjectableiWithScope

InjectableProviderContext.InjectableScopePair getInjectableiWithScope(Parameter p,
                                                                      ComponentScope s)
Get an injectable given a parameter.

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

InjectableProviderContext.InjectableScopePair getInjectableiWithScope(AccessibleObject ao,
                                                                      Parameter p,
                                                                      ComponentScope s)
Get an injectable given a parameter.

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

List<Injectable> getInjectable(List<Parameter> ps,
                               ComponentScope s)
Get a list of injectable given a list of parameter.

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

List<Injectable> getInjectable(AccessibleObject ao,
                               List<Parameter> ps,
                               ComponentScope s)
Get a list of injectable given a list of parameter.

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.