Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
12.10
-
None
Description
Right now the UIX SS does:
public List<UIExtension> getExtensions(String extensionPointId) { UIExtensionManager manager = this.uiExtensionManager; ComponentManager componentManager = contextComponentManagerProvider.get(); if (componentManager.hasComponent(UIExtensionManager.class, extensionPointId)) { try { // Look for a specific UI extension manager for the given extension point manager = componentManager.getInstance(UIExtensionManager.class, extensionPointId); } catch (ComponentLookupException e) { this.logger.error("Failed to initialize UI extension manager", e); } } return manager.get(extensionPointId); }
We should refactor it and add a UIExtensionManagerProvider#get(String uixId component so that the code can be reused also from java code needing to get a list of UIX components.
Attachments
Issue Links
- blocks
-
XWIKI-19208 Introduce uiextensions rendering macros
- Closed
- is related to
-
XWIKI-19298 Make easier to get UI extensions with filters from Java
- Open