Class ResourceClasses
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.wrappers.ResourceClasses
-
@Deprecated public class ResourceClasses extends java.lang.ObjectDeprecated.Will be removed in next minor release.A ResourceClasses creates and caches some of the wrapper objects.
-
-
Field Summary
Fields Modifier and Type Field Description private ExtensionBackwardMappingextensionBackwardMappingDeprecated.private JaxRsProvidersjaxRsProvidersDeprecated.private java.util.logging.LoggerloggerDeprecated.private java.util.Map<java.lang.Class<?>,ResourceClass>resourceClassesDeprecated.private java.util.Set<RootResourceClass>rootResourceClassesDeprecated.This set must only changed by adding a root resource class to this JaxRsRestlet.private ThreadLocalizedContexttlContextDeprecated.
-
Constructor Summary
Constructors Constructor Description ResourceClasses(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 booleanaddRootClass(java.lang.Class<?> rootResourceClass)Deprecated.booleanaddRootSingleton(java.lang.Object jaxRsRootObject)Deprecated.private RootResourceClassgetPerRequestRootClassWrapper(java.lang.Class<?> jaxRsRootResourceClass)Deprecated.Creates a new JAX-RS root resource class wrapper.(package private) ResourceClassgetResourceClass(java.lang.Class<?> jaxRsResourceClass)Deprecated.Creates a new JAX-RS resource class wrapper.private RootResourceClassgetSingletonRootClassWrapper(java.lang.Object jaxRsRootResourceObject)Deprecated.Creates a new JAX-RS root resource object wrapper.java.lang.Iterable<RootResourceClass>roots()Deprecated.
-
-
-
Field Detail
-
extensionBackwardMapping
private final ExtensionBackwardMapping extensionBackwardMapping
Deprecated.
-
jaxRsProviders
private final JaxRsProviders jaxRsProviders
Deprecated.
-
logger
private final java.util.logging.Logger logger
Deprecated.
-
resourceClasses
private final java.util.Map<java.lang.Class<?>,ResourceClass> resourceClasses
Deprecated.
-
rootResourceClasses
private final java.util.Set<RootResourceClass> rootResourceClasses
Deprecated.This set must only changed by adding a root resource class to this JaxRsRestlet.
-
tlContext
private final ThreadLocalizedContext tlContext
Deprecated.
-
-
Constructor Detail
-
ResourceClasses
public ResourceClasses(ThreadLocalizedContext tlContext, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, java.util.logging.Logger logger)
Deprecated.- Parameters:
tlContext- theThreadLocalizedContextof theJaxRsRestlet.jaxRsProviders-extensionBackwardMapping- the extension backward mappinglogger-
-
-
Method Detail
-
addRootClass
public boolean addRootClass(java.lang.Class<?> rootResourceClass)
Deprecated.- Parameters:
rootResourceClass-- Returns:
- true, if the root resource class could be added, or false if not.
-
addRootSingleton
public boolean addRootSingleton(java.lang.Object jaxRsRootObject)
Deprecated.- Parameters:
jaxRsRootObject-- Returns:
- true, if the root resource class could be added, or false if not.
-
getPerRequestRootClassWrapper
private RootResourceClass getPerRequestRootClassWrapper(java.lang.Class<?> jaxRsRootResourceClass) throws java.lang.IllegalArgumentException, MissingAnnotationException, IllegalPathOnClassException, MissingConstructorException, IllegalConstrParamTypeException, IllegalFieldTypeException, IllegalBeanSetterTypeException, IllegalPathParamTypeException
Deprecated.Creates a new JAX-RS root resource class wrapper.- Parameters:
jaxRsRootResourceClass-- Returns:
- the wrapped root resource class.
- 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 found.IllegalBeanSetterTypeExceptionIllegalFieldTypeExceptionIllegalConstrParamTypeExceptionIllegalPathParamTypeException
-
getResourceClass
ResourceClass getResourceClass(java.lang.Class<?> jaxRsResourceClass) throws java.lang.IllegalArgumentException, MissingAnnotationException
Deprecated.Creates a new JAX-RS resource class wrapper.- Parameters:
jaxRsResourceClass-- Returns:
- Throws:
MissingAnnotationExceptionjava.lang.IllegalArgumentException
-
getSingletonRootClassWrapper
private RootResourceClass getSingletonRootClassWrapper(java.lang.Object jaxRsRootResourceObject) throws IllegalPathOnClassException, IllegalConstrParamTypeException, IllegalFieldTypeException, IllegalBeanSetterTypeException, IllegalPathParamTypeException, java.lang.IllegalArgumentException, MissingAnnotationException, MissingConstructorException, InjectException, java.lang.reflect.InvocationTargetException
Deprecated.Creates a new JAX-RS root resource object wrapper.- Parameters:
jaxRsRootResourceClass-- Returns:
- the wrapped root resource class.
- Throws:
java.lang.reflect.InvocationTargetException- if an exception occurs while the injecting of dependencies.java.lang.IllegalArgumentException- if the class is not a valid root resource class.MissingAnnotationException- if the class is not annotated with @Path.MissingConstructorException- if no valid constructor could be found.IllegalPathOnClassExceptionIllegalConstrParamTypeExceptionIllegalFieldTypeExceptionIllegalBeanSetterTypeExceptionIllegalPathParamTypeExceptionInjectException
-
roots
public java.lang.Iterable<RootResourceClass> roots()
Deprecated.- Returns:
- the wrapped root resource classes
-
-