Class ShortestConstructorStrategy

java.lang.Object
nl._42.beanie.generator.constructor.ShortestConstructorStrategy
All Implemented Interfaces:
ConstructorStrategy

public class ShortestConstructorStrategy extends Object implements ConstructorStrategy
Selects the shortest constructor.
Since:
Feb 14, 2014
Author:
Jeroen van Schagen
  • Constructor Details

    • ShortestConstructorStrategy

      public ShortestConstructorStrategy()
  • Method Details

    • findConstructor

      public Constructor<?> findConstructor(Class<?> beanClass)
      Find the best suited constructor of the supplied bean.
      Specified by:
      findConstructor in interface ConstructorStrategy
      Parameters:
      beanClass - the bean class
      Returns:
      the found constructor