diff options
author | Artur Signell <artur@vaadin.com> | 2012-09-24 20:09:06 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-09-24 20:09:06 +0300 |
commit | 73adcd54fcc79b72250a290122e07e2c0c755ceb (patch) | |
tree | 675bfcb6e7dc546144a0727777464a07487cedfa /server/src | |
parent | c6797a3792d598ec6cafebe4333b70aab2beb279 (diff) | |
download | vaadin-framework-73adcd54fcc79b72250a290122e07e2c0c755ceb.tar.gz vaadin-framework-73adcd54fcc79b72250a290122e07e2c0c755ceb.zip |
Use init(PortletConfig) to avoid running init before super (#9728)
Diffstat (limited to 'server/src')
-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); } |