Spring Framework BeanDefinitionDefaults - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework BeanDefinitionDefaults class.

This code example shows how to use the following methods:setAutowireMode, setDependencyCheck, setDestroyMethodName, setInitMethodName, setLazyInit
	/** 
	 * Return the default settings for bean definitions as indicated within 
	 * the attributes of the top-level {@code <beans/>} element. 
	 */ 
	public BeanDefinitionDefaults getBeanDefinitionDefaults() {
		BeanDefinitionDefaults bdd = new BeanDefinitionDefaults();
		bdd.setLazyInit("TRUE".equalsIgnoreCase(this.defaults.getLazyInit()));
		bdd.setDependencyCheck(this.getDependencyCheck(DEFAULT_VALUE));
		bdd.setAutowireMode(this.getAutowireMode(DEFAULT_VALUE));
		bdd.setInitMethodName(this.defaults.getInitMethod());
		bdd.setDestroyMethodName(this.defaults.getDestroyMethod());
		return bdd;
	} 
 
	/** 
	 * Return any patterns provided in the 'default-autowire-candidates' 
	 * attribute of the top-level {@code <beans/>} element. 
	 */ 
	public String[] getAutowireCandidatePatterns() {
		String candidatePattern = this.defaults.getAutowireCandidates();
2
CodeRank