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 Details

    • CachedConstructorAnalyzer

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

    • getConstructor

      public Constructor<T> getConstructor()
    • hasCompatibleConstructor

      public boolean hasCompatibleConstructor()