Interface PackageOpener


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

    Fields
    Modifier and Type
    Field
    Description
    static final PackageOpener
    A no-op package opener.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Field Details

  • Method Details

    • 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.