Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Henri Kerola
committed
Feb 27, 2013
1 parent
3d83c25
commit 10952b9
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package vaadin.scala | ||
|
||
import com.vaadin.server.{SessionInitEvent, SessionInitListener, VaadinPortlet} | ||
import internal.ScaladinUIProvider | ||
import javax.portlet.PortletConfig | ||
|
||
/** | ||
* @see com.vaadin.server.VaadinPortlet | ||
* @author Henri Kerola / Vaadin | ||
*/ | ||
class ScaladinPortlet extends VaadinPortlet { | ||
|
||
override def init(config: PortletConfig) { | ||
super.init(config) | ||
registerUIProvider() | ||
} | ||
|
||
private def registerUIProvider() { | ||
getService.addSessionInitListener(new SessionInitListener { | ||
def sessionInit(e: SessionInitEvent) { | ||
e.getSession.addUIProvider(new ScaladinUIProvider) | ||
} | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters