public final class DatabaseInfoProviderFactory {
public static DatabaseInfoProvider createProvider(ConnectionParams params) {
DriverDescriptor driver = params.getDriver();
Visitor v = new Visitor();
driver.accept(v);
return v.provider;
}
private static final class Visitor implements DriverDescriptorVisitor {