Interface PackageOpener


  • public interface PackageOpener
    A package opener can be used to propagate module visibilities.
    Since:
    1.2.0
    Author:
    Christian Beikov
    • Field Detail

    • Method Detail

      • openPackageIfNeeded

        void openPackageIfNeeded​(Class<?> targetClass,
                                 String targetPackage,
                                 Class<?> implementationClass)
        Opens the given package of the module of the target class to the module of the implementation class.
        Parameters:
        targetClass - The class by which to obtain the module that should be opened.
        targetPackage - The package of the module that should be opened.
        implementationClass - The class by which to obtain the module to which the given package should be opened.