Interface ExtensionIndex

All Known Implementing Classes:
ExtensionIndexService

public interface ExtensionIndex
An index of available Jakarta EE extensions (optional packages and shared libraries). See Jakarta EE Platform Specification, Library Support
Author:
David M. Lloyd
  • Method Details

    • findExtensionAsString

      String findExtensionAsString(String name, String minSpecVersion, String minImplVersion, String requiredVendorId)
      Find the identifier of an extension module, returning null if no matching extension is available.
      Parameters:
      name - the extension name
      minSpecVersion - the minimum spec version to match, or null to match any
      minImplVersion - the minimum implementation version to match, or null to match any
      requiredVendorId - the vendor ID to require, or null to match any
      Returns:
      the module identifier of the extension found.
    • addDeployedExtension

      void addDeployedExtension(String identifier, ExtensionInfo extensionInfo)
      Adds an extension that has been deployed to the server
      Parameters:
      identifier - The module identifier of the extension
      extensionInfo - The extension data
    • removeDeployedExtension

      boolean removeDeployedExtension(String name, String identifier)
      Removes extension information that has been deployed to the server
      Parameters:
      name - The extension name
      identifier - The extension identifier to remove
      Returns:
      true if the extension was found and removed