Class ShortestConstructorStrategy
java.lang.Object
nl._42.beanie.generator.constructor.ShortestConstructorStrategy
- All Implemented Interfaces:
ConstructorStrategy
Selects the shortest constructor.
- Since:
- Feb 14, 2014
- Author:
- Jeroen van Schagen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConstructor<?>
findConstructor
(Class<?> beanClass) Find the best suited constructor of the supplied bean.
-
Constructor Details
-
ShortestConstructorStrategy
public ShortestConstructorStrategy()
-
-
Method Details
-
findConstructor
Find the best suited constructor of the supplied bean.- Specified by:
findConstructor
in interfaceConstructorStrategy
- Parameters:
beanClass
- the bean class- Returns:
- the found constructor
-