public static LambdaFactory get(LambdaFactoryConfiguration configuration) {
        JavaCompiler compiler = Optional.ofNullable(configuration.getJavaCompiler()).orElseThrow(JavaCompilerNotFoundException::new);
        return new LambdaFactory(
                configuration.getDefaultHelperClassSourceProvider(),
                configuration.getClassFactory(),
                compiler,
                configuration.getImports(),
                configuration.getStaticImports(),
                configuration.getCompilationClassPath(),
                configuration.getParentClassLoader());
    }
public static LambdaFactory get ( LambdaFactoryConfiguration configuration ) { JavaCompiler compiler = Optional . ofNullable ( configuration . getJavaCompiler ( ) ) . orElseThrow ( JavaCompilerNotFoundException :: new ) ; return new LambdaFactory ( configuration . getDefaultHelperClassSourceProvider ( ) , configuration . getClassFactory ( ) , compiler , configuration . getImports ( ) , configuration . getStaticImports ( ) , configuration . getCompilationClassPath ( ) , configuration . getParentClassLoader ( ) ) ; }
Returns a LambdaFactory instance with the given configuration.
@throws JavaCompilerNotFoundException if the library cannot find any java compiler and it's not provided
in the configuration