Class VaadinSessionFactory

java.lang.Object
org.vaadin.spring.context.VaadinSessionFactory
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<com.vaadin.server.VaadinSession>, org.springframework.beans.factory.NamedBean

public class VaadinSessionFactory extends Object implements org.springframework.beans.factory.FactoryBean<com.vaadin.server.VaadinSession>, org.springframework.beans.factory.NamedBean
Factory bean that makes the current VaadinSession available for injection. Only works if VaadinSession.getCurrent() does not return null.
Author:
Petter Holmström (petter@vaadin.com)
  • Field Details

  • Constructor Details

    • VaadinSessionFactory

      public VaadinSessionFactory()
  • Method Details

    • getBeanName

      public String getBeanName()
      Specified by:
      getBeanName in interface org.springframework.beans.factory.NamedBean
    • getObject

      public com.vaadin.server.VaadinSession getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<com.vaadin.server.VaadinSession>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<com.vaadin.server.VaadinSession>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<com.vaadin.server.VaadinSession>