All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.yawp.driver.api.DriverFactory Maven / Gradle / Ivy

There is a newer version: 2.08alpha
Show newest version
package io.yawp.driver.api;

import io.yawp.commons.utils.ServiceLookup;
import io.yawp.repository.Repository;

public class DriverFactory {

    private DriverFactory() {}

    public static Driver getDriver(Repository r) {
        Driver driver = lookup();
        driver.init(r);
        return driver;
    }

    public static Driver getDriver() {
        Driver driver = lookup();
        return driver;
    }

    private static Driver lookup() {
        return ServiceLookup.lookup(Driver.class);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy