Example usage for org.springframework.beans.factory.support DefaultListableBeanFactory setSerializationId

List of usage examples for org.springframework.beans.factory.support DefaultListableBeanFactory setSerializationId

Introduction

In this page you can find the example usage for org.springframework.beans.factory.support DefaultListableBeanFactory setSerializationId.

Prototype

public void setSerializationId(@Nullable String serializationId) 

Source Link

Document

Specify an id for serialization purposes, allowing this BeanFactory to be deserialized from this id back into the BeanFactory object, if needed.

Usage

From source file:com.predic8.membrane.core.config.spring.TrackingFileSystemXmlApplicationContext.java

@Override
public void checkForInvalidBeanDefinitions() throws InvalidConfigurationException {
    try {//w  w  w.  ja  va2 s  . c om
        DefaultListableBeanFactory beanFactory = createBeanFactory();
        beanFactory.setSerializationId(null);
        customizeBeanFactory(beanFactory);
        loadBeanDefinitions(beanFactory);
    } catch (XmlBeanDefinitionStoreException e) {
        handleXmlBeanDefinitionStoreException(e);
    } catch (IOException ex) {
        throw new ApplicationContextException(
                "I/O error parsing bean definition source for " + getDisplayName(), ex);
    }
}