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

net.jqwik.engine.facades.DomainContextFacadeImpl Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
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