Groovy Documentation

org.grails.plugin.vaadin
[Groovy] Class VaadinApplication

java.lang.Object
  com.vaadin.Application
      org.grails.plugin.vaadin.VaadinApplication
All Implemented Interfaces:
HttpServletRequestListener

abstract class VaadinApplication
extends Application

A Vaadin Application that supports configuring SystemMessages in grails-app/conf/VaadinConfig.groovy and provides easy access to the application in the current thread using VaadinApplicationContextHolder

Note that this functionality is optional - a user can disable this by simply overriding the Application class directly.

Authors:
Francis McKenzie


Property Summary
static def log

static Application systemMessages

System messages configured from Vaadin config

 
Constructor Summary
VaadinApplication()

 
Method Summary
static Application.CustomizedSystemMessages getSystemMessages()

Lazy-creation of system messages configured from Vaadin config

void onRequestEnd(HttpServletRequest request, HttpServletResponse response)

Clears the application in the current thread using VaadinApplicationContextHolder

void onRequestStart(HttpServletRequest request, HttpServletResponse response)

Stores the application in the current thread using VaadinApplicationContextHolder

 
Methods inherited from class Application
getProperty, getURL, init, getContext, start, close, getVersion, setLocale, getLocale, isRunning, getWindows, setUser, setErrorHandler, getErrorHandler, addListener, addListener, addListener, getPropertyNames, removeListener, removeListener, removeListener, getWindow, addWindow, removeWindow, getUser, getTheme, setTheme, getMainWindow, setMainWindow, addResource, removeResource, getRelativeLocation, handleURI, getLogoutURL, setLogoutURL, getSystemMessages, terminalError, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

log

static def log


systemMessages

static Application systemMessages
System messages configured from Vaadin config


 
Constructor Detail

VaadinApplication

VaadinApplication()


 
Method Detail

getSystemMessages

static Application.CustomizedSystemMessages getSystemMessages()
Lazy-creation of system messages configured from Vaadin config


onRequestEnd

void onRequestEnd(HttpServletRequest request, HttpServletResponse response)
Clears the application in the current thread using VaadinApplicationContextHolder


onRequestStart

void onRequestStart(HttpServletRequest request, HttpServletResponse response)
Stores the application in the current thread using VaadinApplicationContextHolder


 

Groovy Documentation