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

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

Introduction

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

Prototype

public void setInitMethodName(@Nullable String initMethodName) 

Source Link

Document

Set the name of the default initializer 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.
 *///w w w .j  av  a2 s  . c  o  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;
}