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

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

Introduction

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

Prototype

public void configureBean(Object beanInstance) 

Source Link

Document

Configure the bean instance.

Usage

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

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