Package org.restlet.ext.jaxrs
Interface ObjectFactory
-
@Deprecated public interface ObjectFactoryDeprecated.Will be removed in next minor release.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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T> TgetInstance(java.lang.Class<T> jaxRsClass)Deprecated.Creates an instance of the given class.
If the concrete instance could not instantiate the given class, it could return null.
-
-
-
Method Detail
-
getInstance
<T> T getInstance(java.lang.Class<T> jaxRsClass) throws InstantiateExceptionDeprecated.Creates an instance of the given class.
If the concrete instance could not instantiate the given class, it could return null. Than the constructor specified by the JAX-RS specification (section 4.2) is used.- Type Parameters:
T-- Parameters:
jaxRsClass- the root resource class or provider class.- Returns:
- The created instance.
- Throws:
InstantiateException
-
-