Package net.jqwik.api.domains
Interface DomainContext
-
- All Known Implementing Classes:
AbstractDomainContextBase
,DomainContext.Global
,DomainContextBase
@API(status=MAINTAINED, since="1.2.0") public interface DomainContext
Class that implement this interface are used to annotate property methods or containers like this:Domain(MyDomainContext.class)
. They must have a constructor without parameters to be usable in this way.Lifecycle: Instantiate exactly once per property, then initialize(PropertyLifecycleContext) will be called before providers and configurators will be retrieved.
Most implementing class will subclass DomainContextBase.
- See Also:
Domain
,DomainContextBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DomainContext.DomainContextFacade
static class
DomainContext.Global
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<ArbitraryConfigurator>
getArbitraryConfigurators()
java.util.List<ArbitraryProvider>
getArbitraryProviders()
static DomainContext
global()
default void
initialize(PropertyLifecycleContext context)
This method will be called exactly once after instantiation of a given domain context class.default void
setDefaultPriority(int priority)
-
-
-
Method Detail
-
global
@API(status=INTERNAL) static DomainContext global()
-
setDefaultPriority
default void setDefaultPriority(int priority)
-
getArbitraryProviders
java.util.List<ArbitraryProvider> getArbitraryProviders()
-
getArbitraryConfigurators
java.util.List<ArbitraryConfigurator> getArbitraryConfigurators()
-
initialize
@API(status=EXPERIMENTAL, since="1.5.4") default void initialize(PropertyLifecycleContext context)
This method will be called exactly once after instantiation of a given domain context class. The call will happen before any calls to getArbitraryProviders() and getArbitraryConfigurators().Override this message if your domain context needs access to the context of a property.
-
-