Package net.jqwik.api

Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FacadeLoader

        public FacadeLoader()
    • 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