Class PickConstructor


  • public class PickConstructor
    extends java.lang.Object
    Pick
    Version:
    $Revision: 1 $
    • Constructor Summary

      Constructors 
      Constructor Description
      PickConstructor()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.reflect.Constructor pickPerRequestConstructor​(java.lang.Class clazz)
      Pick best constructor for a provider or resource class
      static java.lang.reflect.Constructor pickSingletonConstructor​(java.lang.Class clazz)
      Pick best constructor for a provider or resource class
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PickConstructor

        public PickConstructor()
    • Method Detail

      • pickSingletonConstructor

        public static java.lang.reflect.Constructor pickSingletonConstructor​(java.lang.Class clazz)
        Pick best constructor for a provider or resource class

        Picks constructor with most parameters. Will ignore constructors that have parameters with no @Context annotation

        Parameters:
        clazz -
        Returns:
      • pickPerRequestConstructor

        public static java.lang.reflect.Constructor pickPerRequestConstructor​(java.lang.Class clazz)
        Pick best constructor for a provider or resource class

        Picks constructor with most parameters. Will ignore constructors that have parameters with no @Context annotation

        Parameters:
        clazz -
        Returns: