|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.model.IntrospectionModeller
public class IntrospectionModeller
Utility class for constructing resource model from JAX-RS annotated POJO.
| Method Summary | |
|---|---|
static Parameter |
createParameter(Class concreteClass,
Class declaringClass,
boolean isEncoded,
Class<?> paramClass,
Type paramType,
Annotation[] annotations)
|
static ResourceClass |
createResource(Class<?> resourceClass)
Create a resource model for the class. |
static ResourceClass |
createResource(Object resource)
Create a resource model for the instance. |
static boolean |
isAcceptable(Class<?> c)
Check if the class is acceptable as a JAX-RS provider or resource. |
static boolean |
isRootResource(Class<?> resourceClass)
Checks whether the provided class is a root resource class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ResourceClass createResource(Class<?> resourceClass)
throws IllegalArgumentException
acceptability check,
on the resource class prior to the resource model creation.
resourceClass - resource class to be modeled.
IllegalArgumentException - in case the class is not
acceptable as a JAX-RS resource.public static ResourceClass createResource(Object resource)
createResource(java.lang.Class), this method does not perform
acceptability check, since it is
assumed that the instance of the resource has already been created and is
acceptable.
resource - resource instance to be modeled.
public static boolean isAcceptable(Class<?> c)
false if the class is either
c - class to be checked.
true if the class is an acceptable JAX-RS provider or
resource, false otherwise.public static boolean isRootResource(Class<?> resourceClass)
resourceClass - resource class.
true if the class is a root resource class, false otherwise.
public static Parameter createParameter(Class concreteClass,
Class declaringClass,
boolean isEncoded,
Class<?> paramClass,
Type paramType,
Annotation[] annotations)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||