Class ModuleQualifiedExportsService

java.lang.Object
org.elasticsearch.jdk.ModuleQualifiedExportsService

public abstract class ModuleQualifiedExportsService extends Object
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 Details

    • module

      protected final Module module
  • Constructor Details

    • ModuleQualifiedExportsService

      protected ModuleQualifiedExportsService()
    • ModuleQualifiedExportsService

      protected ModuleQualifiedExportsService(Module module)
  • Method Details

    • getTargets

      public Set<String> getTargets()
      Returns all qualified targets of the owning module.
    • addExportsAndOpens

      public void addExportsAndOpens(Module target)
      Add exports and opens for a target module.
      Parameters:
      target - A module whose name exists in getTargets()
    • addExports

      protected abstract void addExports(String pkg, Module target)
      Add a qualified export. This should always be implemented as follows: module.addExports(pkg, target);
    • addOpens

      protected abstract void addOpens(String pkg, Module target)
      Add a qualified open. This should always be implemented as follows: module.addOpens(pkg, target);