Class OsgiUIProvider

  • All Implemented Interfaces:
    Serializable

    public class OsgiUIProvider
    extends com.vaadin.server.UIProvider
    Vaadin UIProvider that provides a single UI class provided through the registration of a UI as an OSGi service.

    This only applies to Liferay Portal 7+ with OSGi support.

    Since:
    8.1
    Author:
    Sampsa Sohlman
    See Also:
    Serialized Form
    • 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:
        getUIClass in class com.vaadin.server.UIProvider
      • createInstance

        public com.vaadin.ui.UI createInstance​(com.vaadin.server.UICreateEvent event)
        Overrides:
        createInstance in class com.vaadin.server.UIProvider
      • getDefaultPortletName

        public String getDefaultPortletName()
      • getDefaultDisplayName

        public String getDefaultDisplayName()