Interface LocationProvider


  • public interface LocationProvider
    Allows to provide a custom implementation that supplies Locations to be imported by the ArchUnitRunner.

    The implementation must offer a public default (i.e. no arg) constructor.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Set<com.tngtech.archunit.core.importer.Location> get​(java.lang.Class<?> testClass)
      Returns locations to be imported for the current test run.
    • Method Detail

      • get

        java.util.Set<com.tngtech.archunit.core.importer.Location> get​(java.lang.Class<?> testClass)
        Returns locations to be imported for the current test run. The test class parameter can for example be used to evaluate custom annotations on the current test class.
        Parameters:
        testClass - The class object of the test currently executed
        Returns:
        The locations to import