public static DatabaseProtocolFrontendEngine newInstance ( final DatabaseType databaseType ) { for ( DatabaseProtocolFrontendEngine each : NewInstanceServiceLoader . newServiceInstances ( DatabaseProtocolFrontendEngine . class ) ) { if ( DatabaseType . valueFrom ( each . getDatabaseType ( ) ) == databaseType ) { return each ; } } throw new UnsupportedOperationException ( String . format ( "Cannot support database type '%s'" , databaseType ) ) ; }
Create new instance of database protocol frontend engine .