All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.osgi.liferay.OsgiVaadinPortlet Maven / Gradle / Ivy

There is a newer version: 8.27.5
Show newest version
/*
 * 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