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
 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 class com.sun.jersey.core.spi.factory.InjectableProviderFactory
add, configure, configureProviders, getInjectable, getInjectable, getInjectableWithScope, 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, isInjectableProviderRegistered
 

Constructor Detail

ServerInjectableProviderFactory

public ServerInjectableProviderFactory()
Method Detail

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.

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.

getInjectable

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


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