net.jqwik.engine.facades.DomainContextFacadeImpl Maven / Gradle / Ivy
package net.jqwik.engine.facades;
import java.util.*;
import net.jqwik.api.configurators.*;
import net.jqwik.api.domains.*;
import net.jqwik.api.providers.*;
import net.jqwik.engine.properties.configurators.*;
import net.jqwik.engine.providers.*;
public class DomainContextFacadeImpl extends DomainContext.DomainContextFacade {
public static final ThreadLocal currentContext = new ThreadLocal<>();
private DomainContext global = new GlobalDomainContext();
@Override
public DomainContext global() {
return global;
}
private static class GlobalDomainContext implements DomainContext {
@Override
public List getArbitraryProviders() {
return RegisteredArbitraryProviders.getProviders();
}
@Override
public List getArbitraryConfigurators() {
return RegisteredArbitraryConfigurators.getConfigurators();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy