public static Optional < EmbeddedJdbcDatabase > get ( ClassLoader classLoader ) { return databases . stream ( ) . filter ( JdbcDatabase :: isEmbedded ) . map ( EmbeddedJdbcDatabase . class :: cast ) . filter ( embeddedDatabase -> ClassUtils . isPresent ( embeddedDatabase . getDriverClassName ( ) , classLoader ) ) . findFirst ( ) ; }
Searches the provided classloader for an embedded database driver .