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

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

Introduction

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

Prototype

@Override
public void destroy() 

Source Link

Document

Release references to the BeanFactory and BeanWiringInfoResolver when the container is destroyed.

Usage

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

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
    in.defaultReadObject();//  w  w  w  .  j  a  va2 s.  co m
    ConfigurableApplicationContext appContext = (ConfigurableApplicationContext) applicationContextHolder.get();
    BeanConfigurerSupport configurerSupport = new BeanConfigurerSupport();
    configurerSupport.setBeanFactory(appContext.getBeanFactory());
    configurerSupport.afterPropertiesSet();
    configurerSupport.configureBean(this);
    configurerSupport.destroy();
}