Class ModelHelper


  • public final class ModelHelper
    extends java.lang.Object
    Common model helper methods.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ModelHelper()
      Prevent instantiation.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Class<?> getAnnotatedResourceClass​(java.lang.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
    • Constructor Detail

      • ModelHelper

        private ModelHelper()
        Prevent instantiation.
    • Method Detail

      • getAnnotatedResourceClass

        public static java.lang.Class<?> getAnnotatedResourceClass​(java.lang.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.