|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectFactory
Implement this interface to instantiate JAX-RS root resource classes and
providers yourself and register it by
JaxRsApplication.setObjectFactory(ObjectFactory)
.
When using a ObjectFactory, no JAX-RS constructor dependency injection will be performed, but instance variable and bean setter injection will still be done.
JaxRsApplication.setObjectFactory(ObjectFactory)
,
JaxRsRestlet.setObjectFactory(ObjectFactory)
Method Summary | ||
---|---|---|
|
getInstance(java.lang.Class<T> jaxRsClass)
Creates an instance of the given class. If the concrete instance could not instantiate the given class, it could return null. |
Method Detail |
---|
<T> T getInstance(java.lang.Class<T> jaxRsClass) throws InstantiateException
T
- jaxRsClass
- the root resource class or provider class.
InstantiateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |