List of usage examples for org.springframework.beans.factory.support BeanDefinitionDefaults setInitMethodName
public void setInitMethodName(@Nullable String initMethodName)
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; }