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

io.keploy.regression.KeployInstance Maven / Gradle / Ivy

There is a newer version: 1.4.7
Show newest version
package io.keploy.regression;

import io.keploy.regression.keploy.Keploy;

/**
 *  Keploy instance class
 */
public class KeployInstance {
    private static volatile KeployInstance keployInstance;

    private final Keploy keploy;


    private KeployInstance() {
        keploy = new Keploy();
    }

    public static KeployInstance getInstance() {
        if (keployInstance == null) {
            synchronized (KeployInstance.class) {  //thread safe.
                if (keployInstance == null) {
                    keployInstance = new KeployInstance();
                }
            }
        }
        return keployInstance;
    }

    public Keploy getKeploy() {
        return keploy;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy