org.glassfish.jersey.server.model
Class IntrospectionModeller

java.lang.Object
  extended by org.glassfish.jersey.server.model.IntrospectionModeller

public class IntrospectionModeller
extends Object

Utility class for constructing resource model from JAX-RS annotated POJO.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com)

Method Summary
static Parameter createParameter(Class concreteClass, Class declaringClass, boolean isEncoded, Class<?> paramClass, Type paramType, Annotation[] annotations)
           
static ResourceClass createResource(Class<?> resourceClass)
           
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

createResource

public static ResourceClass createResource(Class<?> resourceClass)

isRootResource

public static boolean isRootResource(Class<?> resourceClass)
Checks whether the provided class is a root resource class.

Parameters:
resourceClass - resource class.
Returns:
true if the class is a root resource class, false otherwise.

createParameter

public static Parameter createParameter(Class concreteClass,
                                        Class declaringClass,
                                        boolean isEncoded,
                                        Class<?> paramClass,
                                        Type paramType,
                                        Annotation[] annotations)


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.