Package org.vaadin.spring.context
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic org.springframework.context.ApplicationContextReturn the springApplicationContextvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
VaadinApplicationContext
public VaadinApplicationContext()
-
-
Method Details
-
getContext
public static org.springframework.context.ApplicationContext getContext()Return the springApplicationContext- Returns:
- the spring
ApplicationContext
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-