Class BeanDefinitionDefaults
java.lang.Object
org.springframework.beans.factory.support.BeanDefinitionDefaults
A simple holder for 
BeanDefinition property defaults.- Since:
- 2.5
- Author:
- Mark Fisher, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturn the default autowire mode.intReturn the default dependency check code.Return the name of the default destroy method.Return the name of the default initializer method.Return whether beans should be lazily initialized by default, i.e.booleanReturn whether beans should be lazily initialized by default, i.e.voidsetAutowireMode(int autowireMode) Set the autowire mode.voidsetDependencyCheck(int dependencyCheck) Set the dependency check code.voidsetDestroyMethodName(@Nullable String destroyMethodName) Set the name of the default destroy method.voidsetInitMethodName(@Nullable String initMethodName) Set the name of the default initializer method.voidsetLazyInit(boolean lazyInit) Set whether beans should be lazily initialized by default.
- 
Constructor Details- 
BeanDefinitionDefaultspublic BeanDefinitionDefaults()
 
- 
- 
Method Details- 
setLazyInitpublic void setLazyInit(boolean lazyInit) Set whether beans should be lazily initialized by default.If false, the bean will get instantiated on startup by bean factories that perform eager initialization of singletons.- See Also:
 
- 
isLazyInitpublic boolean isLazyInit()Return whether beans should be lazily initialized by default, i.e. not eagerly instantiated on startup. Only applicable to singleton beans.- Returns:
- whether to apply lazy-init semantics (falseby default)
 
- 
getLazyInit
- 
setAutowireModepublic void setAutowireMode(int autowireMode) Set the autowire mode. This determines whether any automagical detection and setting of bean references will happen. Default is AUTOWIRE_NO which means there won't be convention-based autowiring by name or type (however, there may still be explicit annotation-driven autowiring).- Parameters:
- autowireMode- the autowire mode to set. Must be one of the constants defined in- AbstractBeanDefinition.
- See Also:
 
- 
getAutowireModepublic int getAutowireMode()Return the default autowire mode.
- 
setDependencyCheckpublic void setDependencyCheck(int dependencyCheck) Set the dependency check code.- Parameters:
- dependencyCheck- the code to set. Must be one of the constants defined in- AbstractBeanDefinition.
- See Also:
 
- 
getDependencyCheckpublic int getDependencyCheck()Return the default dependency check code.
- 
setInitMethodName
- 
getInitMethodName
- 
setDestroyMethodName
- 
getDestroyMethodName
 
-