Class RootResourceClass
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.wrappers.AbstractJaxRsWrapper
-
- org.restlet.ext.jaxrs.internal.wrappers.ResourceClass
-
- org.restlet.ext.jaxrs.internal.wrappers.RootResourceClass
-
- All Implemented Interfaces:
RrcOrRml
- Direct Known Subclasses:
PerRequestRootResourceClass,SingletonRootResourceClass
@Deprecated public abstract class RootResourceClass extends ResourceClass implements RrcOrRml
Deprecated.Will be removed in next minor release.Instances represents a root resource class, see chapter 3 of JAX-RS specification.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.reflect.Constructor<?>constructorDeprecated.protected ParameterListconstructorParametersDeprecated.protected IntoRrcInjectorinjectHelperDeprecated.Injects the necessary values directly into the root resource class.private booleansingeltonDeprecated.-
Fields inherited from class org.restlet.ext.jaxrs.internal.wrappers.ResourceClass
jaxRsClass
-
-
Constructor Summary
Constructors Constructor Description RootResourceClass(java.lang.Class<?> jaxRsClass, ThreadLocalizedContext tlContext, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, java.util.logging.Logger logger)Deprecated.Creates a wrapper for the given JAX-RS root resource class.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private static voidcheckClassForPathAnnot(java.lang.Class<?> jaxRsClass, java.lang.String typeName)Deprecated.Checks if the class is public and so on.booleanequals(java.lang.Object anotherObject)Deprecated.abstract ResourceObjectgetInstance(ObjectFactory objectFactory)Deprecated.Creates an or gets the instance of this root resource class.PathRegExpgetPathRegExp()Deprecated.-
Methods inherited from class org.restlet.ext.jaxrs.internal.wrappers.ResourceClass
getAllowedMethods, getJaxRsClass, getMethodsForPath, getName, getResourceMethods, getResourceMethodsAndLocators, getSubResourceLocators, hashCode, hasSubResourceMethodsOrLocators, isLeaveEncoded, toString
-
-
-
-
Field Detail
-
constructor
protected final java.lang.reflect.Constructor<?> constructor
Deprecated.
-
constructorParameters
protected final ParameterList constructorParameters
Deprecated.
-
injectHelper
protected final IntoRrcInjector injectHelper
Deprecated.Injects the necessary values directly into the root resource class.
-
singelton
private final boolean singelton
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RootResourceClass
RootResourceClass(java.lang.Class<?> jaxRsClass, ThreadLocalizedContext tlContext, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, java.util.logging.Logger logger) throws java.lang.IllegalArgumentException, MissingAnnotationException, IllegalPathOnClassException, MissingConstructorException, IllegalConstrParamTypeException, IllegalFieldTypeException, IllegalBeanSetterTypeException, IllegalPathParamTypeExceptionDeprecated.Creates a wrapper for the given JAX-RS root resource class.- Parameters:
jaxRsClass- the root resource class to wraptlContext- theThreadLocalizedContextof theJaxRsRestlet.jaxRsProviders- all entity providers.extensionBackwardMapping- the extension backward mappinglogger- the logger to use.- Throws:
java.lang.IllegalArgumentException- if the class is not a valid root resource class.MissingAnnotationException- if the class is not annotated with @Path.IllegalPathOnClassExceptionMissingConstructorException- if no valid constructor could be foundIllegalConstrParamTypeExceptionIllegalBeanSetterTypeExceptionIllegalFieldTypeExceptionIllegalPathParamTypeException- See Also:
ResourceClasses#getRootResourceClass(Class)
-
-
Method Detail
-
checkClassForPathAnnot
private static void checkClassForPathAnnot(java.lang.Class<?> jaxRsClass, java.lang.String typeName) throws MissingAnnotationExceptionDeprecated.Checks if the class is public and so on.- Parameters:
jaxRsClass- JAX-RS root resource class or JAX-RS provider.typeName- "root resource class" or "provider"- Throws:
MissingAnnotationException- if the class is not annotated with @Path.
-
equals
public boolean equals(java.lang.Object anotherObject)
Deprecated.- Overrides:
equalsin classResourceClass
-
getInstance
public abstract ResourceObject getInstance(ObjectFactory objectFactory) throws InstantiateException, java.lang.reflect.InvocationTargetException
Deprecated.Creates an or gets the instance of this root resource class.- Parameters:
objectFactory- object responsible for instantiating the root resource class. Optional, thus can be null.- Returns:
- a wrapped root resource instance
- Throws:
InstantiateExceptionjava.lang.reflect.InvocationTargetException
-
getPathRegExp
public PathRegExp getPathRegExp()
Deprecated.- Specified by:
getPathRegExpin interfaceRrcOrRml- Overrides:
getPathRegExpin classAbstractJaxRsWrapper- Returns:
- Returns the regular expression for the URI template
-
-