org.glassfish.jersey.server.model.internal
Class ModelHelper

java.lang.Object
  extended by org.glassfish.jersey.server.model.internal.ModelHelper

public final class ModelHelper
extends Object

Common model helper methods.

Author:
Michal Gajdos (michal.gajdos at oracle.com)

Method Summary
static Class<?> getAnnotatedResourceClass(Class<?> resourceClass)
          Get the class in the provided resource class ancestor hierarchy that is actually annotated with the @Path annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAnnotatedResourceClass

public static Class<?> getAnnotatedResourceClass(Class<?> resourceClass)
Get the class in the provided resource class ancestor hierarchy that is actually annotated with the @Path annotation.

Parameters:
resourceClass - resource class.
Returns:
resource class or it's ancestor that is annotated with the @Path annotation.


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.