Interface EagerExportProvider

All Known Subinterfaces:
EagerExportProvider

public interface EagerExportProvider
Service provider interface implemented by library exports if they needed to be loaded eagerly with a library. For example, this is used for exports that are marked to be used for AOT. On SVM we can rely that the closed world analysis registers all exports at image generation time, so there is no need to use these service providers.

Service provider interface implementations and uses are intended to be automatically generated by the Truffle DSL annotation processor. Do not declare custom eager export providers or call ensureRegistered().

Since:
23.1
  • Method Details

    • ensureRegistered

      void ensureRegistered()
      Ensures that the export is registered and usable. This method has no effect if already registered.
      Since:
      23.1
    • getLibraryClassName

      String getLibraryClassName()
      Returns the class name of the library to be used. Uses a string to avoid triggering class loading for all libraries.
      Since:
      23.1