public interface PackageOpener
Modifier and Type | Field | Description |
---|---|---|
static PackageOpener |
NOOP |
A no-op package opener.
|
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.
|
static final PackageOpener NOOP
void openPackageIfNeeded(Class<?> targetClass, String targetPackage, Class<?> implementationClass)
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.Copyright © 2014–2018 Blazebit. All rights reserved.