Class CachedConstructorAnalyzer<T>


  • public class CachedConstructorAnalyzer<T>
    extends Object
    Processes a provided class and selects the valid constructor with the largest number of parameters. Constructor is cached for a later retrieve.
    • Constructor Detail

      • CachedConstructorAnalyzer

        public CachedConstructorAnalyzer​(Class<T> clazz,
                                         Collection<Class<? extends Annotation>> annotations)
        Creates a new constructor analyzer which accepts the class that is analyzed.
        Parameters:
        clazz - analyzed class.
        annotations - all annotations used for an injecting.
    • Method Detail

      • hasCompatibleConstructor

        public boolean hasCompatibleConstructor()