diff options
-rw-r--r-- | server/src/com/vaadin/server/LegacyVaadinPortlet.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/server/src/com/vaadin/server/LegacyVaadinPortlet.java b/server/src/com/vaadin/server/LegacyVaadinPortlet.java index 1402a88c7d..a91a82076e 100644 --- a/server/src/com/vaadin/server/LegacyVaadinPortlet.java +++ b/server/src/com/vaadin/server/LegacyVaadinPortlet.java @@ -16,6 +16,7 @@ package com.vaadin.server; +import javax.portlet.PortletConfig; import javax.portlet.PortletException; import javax.portlet.PortletRequest; @@ -44,8 +45,8 @@ public class LegacyVaadinPortlet extends VaadinPortlet { }; @Override - public void init() throws PortletException { - super.init(); + public void init(PortletConfig portletConfig) throws PortletException { + super.init(portletConfig); getService().addVaadinSessionInitializationListener( new VaadinSessionInitializationListener() { @@ -56,8 +57,7 @@ public class LegacyVaadinPortlet extends VaadinPortlet { try { onVaadinSessionStarted(VaadinPortletRequest .cast(event.getRequest()), - (VaadinPortletSession) event - .getSession()); + (VaadinPortletSession) event.getSession()); } catch (PortletException e) { throw new ServiceException(e); } @@ -68,8 +68,7 @@ public class LegacyVaadinPortlet extends VaadinPortlet { protected Class<? extends LegacyApplication> getApplicationClass() throws ClassNotFoundException { try { - return ServletPortletHelper - .getLegacyApplicationClass(getService()); + return ServletPortletHelper.getLegacyApplicationClass(getService()); } catch (ServiceException e) { throw new RuntimeException(e); } |