com.vaadin.server
Class AbstractVaadinService

java.lang.Object
  extended by com.vaadin.server.AbstractVaadinService
All Implemented Interfaces:
VaadinService, java.io.Serializable
Direct Known Subclasses:
VaadinPortlet.PortletService, VaadinServlet.ServletService

public abstract class AbstractVaadinService
extends java.lang.Object
implements VaadinService

Abstract implementation of VaadinService that takes care of those parts that are common to both servlets and portlets.

Since:
7.0.0
Author:
Vaadin Ltd
See Also:
Serialized Form

Constructor Summary
AbstractVaadinService(DeploymentConfiguration deploymentConfiguration)
          Creates a new vaadin service based on a deployment configuration
 
Method Summary
 AddonContext getAddonContext()
           
 java.util.Iterator<AddonContextListener> getAddonContextListeners()
           
 java.lang.ClassLoader getClassLoader()
          Get the class loader to use for loading classes loaded by name, e.g.
 DeploymentConfiguration getDeploymentConfiguration()
          Gets the deployment configuration.
 VaadinSession getVaadinSession(WrappedRequest request)
          Gets the Vaadin session associated with this request.
 void setAddonContext(AddonContext addonContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.server.VaadinService
getBaseDirectory, getConfiguredTheme, getConfiguredWidgetset, getMimeType, getStaticFileLocation, getSystemMessages, isStandalone
 

Constructor Detail

AbstractVaadinService

public AbstractVaadinService(DeploymentConfiguration deploymentConfiguration)
Creates a new vaadin service based on a deployment configuration

Parameters:
deploymentConfiguration - the deployment configuration for the service
Method Detail

getDeploymentConfiguration

public DeploymentConfiguration getDeploymentConfiguration()
Description copied from interface: VaadinService
Gets the deployment configuration.

Specified by:
getDeploymentConfiguration in interface VaadinService
Returns:
the deployment configuration

getClassLoader

public java.lang.ClassLoader getClassLoader()
Description copied from interface: VaadinService
Get the class loader to use for loading classes loaded by name, e.g. custom UI classes. null indicates that the default class loader should be used.

Specified by:
getClassLoader in interface VaadinService
Returns:
the class loader to use, or null

getAddonContextListeners

public java.util.Iterator<AddonContextListener> getAddonContextListeners()
Specified by:
getAddonContextListeners in interface VaadinService

setAddonContext

public void setAddonContext(AddonContext addonContext)
Specified by:
setAddonContext in interface VaadinService

getAddonContext

public AddonContext getAddonContext()
Specified by:
getAddonContext in interface VaadinService

getVaadinSession

public VaadinSession getVaadinSession(WrappedRequest request)
Description copied from interface: VaadinService
Gets the Vaadin session associated with this request.

Specified by:
getVaadinSession in interface VaadinService
Parameters:
request - the request to get a vaadin session for.
Returns:
the vaadin session for the request, or null if no session is found and this is a request for which a new session shouldn't be created.
See Also:
VaadinSession


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