public static < ComponentT > Optional < ComponentT > buildFromConfig ( InternalDriverContext context , DriverOption classNameOption , Class < ComponentT > expectedSuperType , String ... defaultPackages ) { return buildFromConfig ( context , null , classNameOption , expectedSuperType , defaultPackages ) ; }
Tries to create an instance of a class given an option defined in the driver configuration .