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 Summary
Modifier and TypeMethodDescriptionvoidaddDeployedExtension(String identifier, ExtensionInfo extensionInfo) Adds an extension that has been deployed to the serverfindExtensionAsString(String name, String minSpecVersion, String minImplVersion, String requiredVendorId) Find the identifier of an extension module, returningnullif no matching extension is available.booleanremoveDeployedExtension(String name, String identifier) Removes extension information that has been deployed to the server
-
Method Details
-
findExtensionAsString
String findExtensionAsString(String name, String minSpecVersion, String minImplVersion, String requiredVendorId) Find the identifier of an extension module, returningnullif no matching extension is available.- Parameters:
name- the extension nameminSpecVersion- the minimum spec version to match, ornullto match anyminImplVersion- the minimum implementation version to match, ornullto match anyrequiredVendorId- the vendor ID to require, ornullto match any- Returns:
- the module identifier of the extension found.
-
addDeployedExtension
Adds an extension that has been deployed to the server- Parameters:
identifier- The module identifier of the extensionextensionInfo- The extension data
-
removeDeployedExtension
Removes extension information that has been deployed to the server- Parameters:
name- The extension nameidentifier- The extension identifier to remove- Returns:
- true if the extension was found and removed
-