Package com.vaadin.osgi.liferay
Class OsgiUIProvider
- java.lang.Object
-
- com.vaadin.server.UIProvider
-
- com.vaadin.osgi.liferay.OsgiUIProvider
-
- All Implemented Interfaces:
Serializable
public class OsgiUIProvider extends com.vaadin.server.UIProviderVaadinUIProviderthat provides a singleUIclass provided through the registration of aUIas an OSGi service.This only applies to Liferay Portal 7+ with OSGi support.
- Since:
- 8.1
- Author:
- Sampsa Sohlman
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OsgiUIProvider(org.osgi.framework.ServiceObjects<com.vaadin.ui.UI> serviceObjects, Optional<org.osgi.service.log.LogService> logService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.ui.UIcreateInstance(com.vaadin.server.UICreateEvent event)StringgetDefaultDisplayName()StringgetDefaultPortletName()Class<? extends com.vaadin.ui.UI>getUIClass(com.vaadin.server.UIClassSelectionEvent event)
-
-
-
Constructor Detail
-
OsgiUIProvider
public OsgiUIProvider(org.osgi.framework.ServiceObjects<com.vaadin.ui.UI> serviceObjects, Optional<org.osgi.service.log.LogService> logService)
-
-
Method Detail
-
getUIClass
public Class<? extends com.vaadin.ui.UI> getUIClass(com.vaadin.server.UIClassSelectionEvent event)
- Specified by:
getUIClassin classcom.vaadin.server.UIProvider
-
createInstance
public com.vaadin.ui.UI createInstance(com.vaadin.server.UICreateEvent event)
- Overrides:
createInstancein classcom.vaadin.server.UIProvider
-
getDefaultPortletName
public String getDefaultPortletName()
-
getDefaultDisplayName
public String getDefaultDisplayName()
-
-