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
 java.util.List<Injectable> getInjectable(java.util.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(Parameter p, ComponentScope s)
          Get an injectable given a parameter.
 
Methods inherited from interface com.sun.jersey.spi.inject.InjectableProviderContext
getInjectable, getInjectable, getInjectableWithScope, isInjectableProviderRegistered
 

Method Detail

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.

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.

getInjectable

java.util.List<Injectable> getInjectable(java.util.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.


Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.