|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.guice.spi.container.GuiceComponentProviderFactory
public class GuiceComponentProviderFactory
The Guice-based IoCComponentProviderFactory
.
Constructor Summary | |
---|---|
GuiceComponentProviderFactory(ResourceConfig config,
Injector injector)
Creates a new GuiceComponentProviderFactory. |
Method Summary | |
---|---|
java.util.Map<Scope,ComponentScope> |
createScopeMap()
Maps a Guice scope to a Jersey scope. |
IoCComponentProvider |
getComponentProvider(java.lang.Class<?> c)
|
IoCComponentProvider |
getComponentProvider(ComponentContext cc,
java.lang.Class<?> clazz)
|
boolean |
isGuiceConstructorInjected(java.lang.Class<?> c)
Determine if a class is an implicit Guice component that can be instantiated by Guice and the life-cycle managed by Jersey. |
boolean |
isGuiceFieldOrMethodInjected(java.lang.Class<?> c)
Determine if a class uses field or method injection via Guice using the Inject annotation |
boolean |
isImplicitGuiceComponent(java.lang.Class<?> c)
Deprecated. see isGuiceConstructorInjected(java.lang.Class) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuiceComponentProviderFactory(ResourceConfig config, Injector injector)
config
- the resource configurationinjector
- the Guice injectorMethod Detail |
---|
public IoCComponentProvider getComponentProvider(java.lang.Class<?> c)
getComponentProvider
in interface ComponentProviderFactory<IoCComponentProvider>
getComponentProvider
in interface IoCComponentProviderFactory
public IoCComponentProvider getComponentProvider(ComponentContext cc, java.lang.Class<?> clazz)
getComponentProvider
in interface IoCComponentProviderFactory
@Deprecated public boolean isImplicitGuiceComponent(java.lang.Class<?> c)
isGuiceConstructorInjected(java.lang.Class)
c
- the class.
public boolean isGuiceConstructorInjected(java.lang.Class<?> c)
c
- the class.
public boolean isGuiceFieldOrMethodInjected(java.lang.Class<?> c)
Inject
annotation
c
- the class.
public java.util.Map<Scope,ComponentScope> createScopeMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |