@Deprecated
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)| Modifier and Type | Method and Description |
|---|---|
<T> T |
getInstance(java.lang.Class<T> jaxRsClass)
Deprecated.
Creates an instance of the given class.
|
<T> T getInstance(java.lang.Class<T> jaxRsClass)
throws InstantiateException
T - jaxRsClass - the root resource class or provider class.InstantiateExceptionCopyright © 2005-2024 Restlet.