Example usage for org.springframework.beans.factory.wiring BeanConfigurerSupport setBeanFactory

List of usage examples for org.springframework.beans.factory.wiring BeanConfigurerSupport setBeanFactory

Introduction

In this page you can find the example usage for org.springframework.beans.factory.wiring BeanConfigurerSupport setBeanFactory.

Prototype

@Override
public void setBeanFactory(BeanFactory beanFactory) 

Source Link

Document

Set the BeanFactory in which this aspect must configure beans.

Usage

From source file:org.vaadin.webinars.springandvaadin.serialization.SerializableUI.java

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();//from   w w  w.  ja  v  a 2 s.  c om
    ConfigurableApplicationContext appContext = (ConfigurableApplicationContext) applicationContextHolder.get();
    BeanConfigurerSupport configurerSupport = new BeanConfigurerSupport();
    configurerSupport.setBeanFactory(appContext.getBeanFactory());
    configurerSupport.afterPropertiesSet();
    configurerSupport.configureBean(this);
    configurerSupport.destroy();
}