소스 검색

Property change of the UI service updates the properties of the Portlet

In response to property change the properties
tags/8.1.0.alpha7
Mirjan Merruko 7 년 전
부모
커밋
2c7c72b098
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 14
    0
      liferay-integration/src/main/java/com/vaadin/osgi/liferay/PortletUIServiceTrackerCustomizer.java

+ 14
- 0
liferay-integration/src/main/java/com/vaadin/osgi/liferay/PortletUIServiceTrackerCustomizer.java 파일 보기

@@ -182,6 +182,20 @@ class PortletUIServiceTrackerCustomizer
@Override
public void modifiedService(ServiceReference<UI> serviceReference,
ServiceObjects<UI> ui) {
/*
* This service has been registered as a portlet at some point,
* otherwise it wouldn't be tracked.
*
* This handles changes for Portlet related properties that are part of
* the UI service to be passed to the Portlet service registration.
*/
Dictionary<String, Object> newProperties = createPortletProperties(
serviceReference);
ServiceRegistration<Portlet> registration = portletRegistrations
.get(serviceReference);
if (registration != null) {
registration.setProperties(newProperties);
}
}

@Override

Loading…
취소
저장