Class SingletonRootResourceClass
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.wrappers.AbstractJaxRsWrapper
-
- org.restlet.ext.jaxrs.internal.wrappers.ResourceClass
-
- org.restlet.ext.jaxrs.internal.wrappers.RootResourceClass
-
- org.restlet.ext.jaxrs.internal.wrappers.SingletonRootResourceClass
-
- All Implemented Interfaces:
RrcOrRml
@Deprecated public class SingletonRootResourceClass extends RootResourceClass
Deprecated.Will be removed in next minor release.
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceObjectrootResObjectDeprecated.-
Fields inherited from class org.restlet.ext.jaxrs.internal.wrappers.RootResourceClass
constructor, constructorParameters, injectHelper
-
Fields inherited from class org.restlet.ext.jaxrs.internal.wrappers.ResourceClass
jaxRsClass
-
-
Constructor Summary
Constructors Constructor Description SingletonRootResourceClass(java.lang.Object rootResourceObject, ThreadLocalizedContext tlContext, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, java.util.logging.Logger logger)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ResourceObjectgetInstance(ObjectFactory objectFactory)Deprecated.Creates an or gets the instance of this root resource class.-
Methods inherited from class org.restlet.ext.jaxrs.internal.wrappers.RootResourceClass
equals, getPathRegExp
-
Methods inherited from class org.restlet.ext.jaxrs.internal.wrappers.ResourceClass
getAllowedMethods, getJaxRsClass, getMethodsForPath, getName, getResourceMethods, getResourceMethodsAndLocators, getSubResourceLocators, hashCode, hasSubResourceMethodsOrLocators, isLeaveEncoded, toString
-
-
-
-
Field Detail
-
rootResObject
private final ResourceObject rootResObject
Deprecated.
-
-
Constructor Detail
-
SingletonRootResourceClass
SingletonRootResourceClass(java.lang.Object rootResourceObject, ThreadLocalizedContext tlContext, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, java.util.logging.Logger logger) throws java.lang.IllegalArgumentException, MissingAnnotationException, IllegalPathOnClassException, MissingConstructorException, IllegalConstrParamTypeException, IllegalFieldTypeException, IllegalBeanSetterTypeException, IllegalPathParamTypeException, java.lang.reflect.InvocationTargetException, InjectExceptionDeprecated.- Parameters:
rootResourceObject-tlContext-jaxRsProviders-extensionBackwardMapping-logger-- Throws:
java.lang.IllegalArgumentExceptionMissingAnnotationExceptionIllegalPathOnClassExceptionMissingConstructorExceptionIllegalConstrParamTypeExceptionIllegalFieldTypeExceptionIllegalBeanSetterTypeExceptionIllegalPathParamTypeExceptionjava.lang.reflect.InvocationTargetException- if an exception occurs while the injecting of dependencies.InjectException
-
-
Method Detail
-
getInstance
public ResourceObject getInstance(ObjectFactory objectFactory)
Deprecated.Creates an or gets the instance of this root resource class.- Specified by:
getInstancein classRootResourceClass- Parameters:
objectFactory- object responsible for instantiating the root resource class. Optional, thus can be null.- Returns:
- the wrapped root resource class instance
- Throws:
java.lang.reflect.InvocationTargetExceptionInstantiateExceptionMissingAnnotationExceptionjavax.ws.rs.WebApplicationException
-
-