com.vaadin.osgi.liferay.OsgiVaadinPortlet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-liferay-integration Show documentation
Show all versions of vaadin-liferay-integration Show documentation
Liferay 7+ OSGi portlet support
/*
* Copyright (C) 2000-2024 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.osgi.liferay;
import com.vaadin.portlet.VaadinPortlet;
import com.vaadin.portlet.VaadinPortletService;
import com.vaadin.server.DeploymentConfiguration;
import com.vaadin.server.ServiceException;
import com.vaadin.ui.UI;
/**
* {@link VaadinPortlet} that uses an {@link OsgiUIProvider} to configure its
* {@link UI}.
*
* This only applies to Liferay Portal 7+ with OSGi support.
*
* @author Sampsa Sohlman
*
* @since 8.1
*/
@SuppressWarnings("serial")
public class OsgiVaadinPortlet extends VaadinPortlet {
private OsgiUIProvider uiProvider;
public OsgiVaadinPortlet(OsgiUIProvider uiProvider) {
this.uiProvider = uiProvider;
}
@Override
protected VaadinPortletService createPortletService(
DeploymentConfiguration configuration) throws ServiceException {
OsgiVaadinPortletService osgiVaadinPortletService = new OsgiVaadinPortletService(
this, configuration, uiProvider);
osgiVaadinPortletService.init();
return osgiVaadinPortletService;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy