java.lang.Object
org.elasticsearch.jdk.ModuleQualifiedExportsService
An object that provides a callback for qualified exports and opens.
Because Elasticsearch constructs plugin module layers dynamically, qualified
exports are silently dropped in the boot layer. Modules that have qualified
exports should implement this service so that when a qualified export
module is loaded, the exporting or opening module can be informed and
export or open dynamically to the newly loaded module.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddExports(String pkg, Module target) Add a qualified export.voidaddExportsAndOpens(Module target) Add exports and opens for a target module.protected abstract voidAdd a qualified open.Returns all qualified targets of the owning module.
-
Field Details
-
module
-
-
Constructor Details
-
ModuleQualifiedExportsService
protected ModuleQualifiedExportsService() -
ModuleQualifiedExportsService
-
-
Method Details
-
getTargets
Returns all qualified targets of the owning module. -
addExportsAndOpens
Add exports and opens for a target module.- Parameters:
target- A module whose name exists ingetTargets()
-
addExports
Add a qualified export. This should always be implemented as follows:module.addExports(pkg, target); -
addOpens
Add a qualified open. This should always be implemented as follows:module.addOpens(pkg, target);
-