com.vaadin
Class Application.ApplicationStartEvent

java.lang.Object
  extended by com.vaadin.Application.ApplicationStartEvent
All Implemented Interfaces:
Serializable
Enclosing class:
Application

public static class Application.ApplicationStartEvent
extends Object
implements Serializable

An event sent to Application.start(ApplicationStartEvent) when a new Application is being started.

Since:
7.0
See Also:
Serialized Form

Constructor Summary
Application.ApplicationStartEvent(URL applicationUrl, Properties applicationProperties, ApplicationContext context, boolean productionMode)
           
 
Method Summary
 Properties getApplicationProperties()
          Gets the Application properties as specified by the deployment configuration.
 URL getApplicationUrl()
          Gets the URL the application should respond to.
 ApplicationContext getContext()
          Gets the context application will be running in.
 boolean isProductionMode()
          Checks whether the application is running in production mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application.ApplicationStartEvent

public Application.ApplicationStartEvent(URL applicationUrl,
                                         Properties applicationProperties,
                                         ApplicationContext context,
                                         boolean productionMode)
Parameters:
applicationUrl - the URL the application should respond to.
applicationProperties - the Application properties as specified by the deployment configuration.
context - the context application will be running in.
productionMode - flag indicating whether the application is running in production mode.
Method Detail

getApplicationUrl

public URL getApplicationUrl()
Gets the URL the application should respond to.

Returns:
the URL the application should respond to or null if the URL is not defined.
See Also:
Application.getURL()

getApplicationProperties

public Properties getApplicationProperties()
Gets the Application properties as specified by the deployment configuration.

Returns:
the properties configured for the applciation.
See Also:
Application.getProperty(String)

getContext

public ApplicationContext getContext()
Gets the context application will be running in.

Returns:
the context application will be running in.
See Also:
Application.getContext()

isProductionMode

public boolean isProductionMode()
Checks whether the application is running in production mode.

Returns:
true if in production mode, else false
See Also:
Application.isProductionMode()


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.