Package net.jqwik.api
Class FacadeLoader
- java.lang.Object
-
- net.jqwik.api.FacadeLoader
-
@API(status=INTERNAL) public class FacadeLoader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FacadeLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
load(java.lang.Class<T> facadeClass)
Load single implementation of an API facade.
-
-
-
Method Detail
-
load
public static <T> T load(java.lang.Class<T> facadeClass)
Load single implementation of an API facade. This should be registered as service provider in the jqwik engine module. There must be exactly one facade registered otherwise null will be returned and a severe error is logged. This method need not be synchronized because it's only called from static initializers.- Type Parameters:
T
- the facade type- Parameters:
facadeClass
- The facade type to load- Returns:
- instance of facade
-
-