]
Vu Viet Phuong updated GTNPORTAL-3529:
--------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
Make UIContainer creation more flexible
---------------------------------------
Key: GTNPORTAL-3529
URL:
https://issues.jboss.org/browse/GTNPORTAL-3529
Project: GateIn Portal
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Components: WebUI
Affects Versions: 3.8.2.Final
Reporter: Vu Viet Phuong
Assignee: Vu Viet Phuong
Fix For: 3.9.0.Final
In PortalDataMapper, we have this
{code}
if (UITabContainer.TAB_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context,
UITabContainer.class, null, null);
} else if
(UIColumnContainer.COLUMN_CONTAINER.equals(container.getFactoryId())) {
uiTempContainer = uiContainer.createUIComponent(context,
UIColumnContainer.class, null, null);
} else {
...
{code}
This should be improved by making it more flexible, and extensible. Using ServiceLoader
to load the factories class that help to create UIContainer by their factory-id