|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.spi.spring.container.SpringComponentProviderFactory
public class SpringComponentProviderFactory
The Spring-based IoCComponentProviderFactory
.
Resource and provider classes can be registered Spring-based beans using XML-based registration or auto-wire-based registration.
Constructor Summary | |
---|---|
SpringComponentProviderFactory(ResourceConfig rc,
org.springframework.context.ConfigurableApplicationContext springContext)
|
Method Summary | |
---|---|
IoCComponentProvider |
getComponentProvider(java.lang.Class c)
Get the IoC component provider for a class. |
IoCComponentProvider |
getComponentProvider(ComponentContext cc,
java.lang.Class c)
Get the IoC component provider for a class with additional context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringComponentProviderFactory(ResourceConfig rc, org.springframework.context.ConfigurableApplicationContext springContext)
Method Detail |
---|
public IoCComponentProvider getComponentProvider(java.lang.Class c)
IoCComponentProviderFactory
getComponentProvider
in interface ComponentProviderFactory<IoCComponentProvider>
getComponentProvider
in interface IoCComponentProviderFactory
c
- the class
public IoCComponentProvider getComponentProvider(ComponentContext cc, java.lang.Class c)
IoCComponentProviderFactory
The additional context will be associated with the annotations and
optionally an annotated object. For example, a component provider may
be requested for a class that is the type of a Field
, or be
requested for a class that is the type of a method parameter.
getComponentProvider
in interface IoCComponentProviderFactory
cc
- the component context to obtain annotations and
the annotated object (if present).c
- the class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |