Class VaadinApplicationContext

java.lang.Object
org.vaadin.spring.context.VaadinApplicationContext
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class VaadinApplicationContext extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
VaadinApplicationContext allows static access to the ApplicationContext. This implementation exists to provide access from non-managed spring beans.

A VaadinApplicationContext provides:

  • Access to the Spring ApplicationContext.
Author:
G.J.R. Timmer, Petter Holmström (petter@vaadin.com)
See Also:
  • ApplicationContext
  • Constructor Details

    • VaadinApplicationContext

      public VaadinApplicationContext()
  • Method Details

    • getContext

      public static org.springframework.context.ApplicationContext getContext()
      Return the spring ApplicationContext
      Returns:
      the spring ApplicationContext
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception