Class ModelHelper


  • public final class ModelHelper
    extends Object
    Common model helper methods.
    Author:
    Michal Gajdos, Constantino Cronemberger (ccronemberger at yahoo.com.br)
    • 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.