Package com.blazebit.persistence.spi
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 PackageOpener
NOOP
A no-op package opener.
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
NOOP
static final PackageOpener NOOP
A no-op package opener.
-
-
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.
-
-