Example usage for org.springframework.beans.factory.support BeanDefinitionDefaults setDestroyMethodName

List of usage examples for org.springframework.beans.factory.support BeanDefinitionDefaults setDestroyMethodName

Introduction

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

Prototype

public void setDestroyMethodName(@Nullable String destroyMethodName) 

Source Link

Document

Set the name of the default destroy method.

Usage

From source file:org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.java

/**
 * Return the default settings for bean definitions as indicated within
 * the attributes of the top-level {@code <beans/>} element.
 *//*from w w  w . j av  a2 s . co  m*/
public BeanDefinitionDefaults getBeanDefinitionDefaults() {
    BeanDefinitionDefaults bdd = new BeanDefinitionDefaults();
    bdd.setLazyInit("TRUE".equalsIgnoreCase(this.defaults.getLazyInit()));
    bdd.setAutowireMode(getAutowireMode(DEFAULT_VALUE));
    bdd.setInitMethodName(this.defaults.getInitMethod());
    bdd.setDestroyMethodName(this.defaults.getDestroyMethod());
    return bdd;
}