Class CtorResolver


  • public class CtorResolver
    extends java.lang.Object
    Resolver for constructor injection points.
    • Method Detail

      • resolve

        public CtorInjectionPoint resolve​(java.lang.Class type,
                                          boolean useAnnotation)
        Resolves constructor injection point from type. Looks for single annotated constructor. If no annotated constructors found, the total number of constructors will be checked. If there is only one constructor, that one will be used as injection point. If more constructors exist, the default one will be used as injection point. Otherwise, exception is thrown.