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

io.keploy.regression.context.Context Maven / Gradle / Ivy

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

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
public class Context {
    private static InheritableThreadLocal ctx = new InheritableThreadLocal<>();

    public static void setCtx(Kcontext kcontext) {
        ctx.set(kcontext);
    }

    public static Kcontext getCtx() {
        return ctx.get();
    }

    public static void cleanup() {
        if (ctx.get() != null) {
            ctx.remove();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy