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

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

Introduction

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

Prototype

@Override
public void afterPropertiesSet() 

Source Link

Document

Check that a BeanFactory has been set.

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.  j av  a  2s  . c  om*/
    ConfigurableApplicationContext appContext = (ConfigurableApplicationContext) applicationContextHolder.get();
    BeanConfigurerSupport configurerSupport = new BeanConfigurerSupport();
    configurerSupport.setBeanFactory(appContext.getBeanFactory());
    configurerSupport.afterPropertiesSet();
    configurerSupport.configureBean(this);
    configurerSupport.destroy();
}