public class BeanDefinitionDefaults extends Object
BeanDefinition
property defaults.AbstractBeanDefinition.applyDefaults(org.springframework.beans.factory.support.BeanDefinitionDefaults)
Constructor and Description |
---|
BeanDefinitionDefaults() |
Modifier and Type | Method and Description |
---|---|
int |
getAutowireMode()
Return the default autowire mode.
|
int |
getDependencyCheck()
Return the default dependency check code.
|
String |
getDestroyMethodName()
Return the name of the default destroy method.
|
String |
getInitMethodName()
Return the name of the default initializer method.
|
boolean |
isLazyInit()
Return whether beans should be lazily initialized by default, i.e.
|
void |
setAutowireMode(int autowireMode)
Set the autowire mode.
|
void |
setDependencyCheck(int dependencyCheck)
Set the dependency check code.
|
void |
setDestroyMethodName(String destroyMethodName)
Set the name of the default destroy method.
|
void |
setInitMethodName(String initMethodName)
Set the name of the default initializer method.
|
void |
setLazyInit(boolean lazyInit)
Set whether beans should be lazily initialized by default.
|
public void setLazyInit(boolean lazyInit)
If false
, the bean will get instantiated on startup by bean
factories that perform eager initialization of singletons.
public boolean isLazyInit()
false
by default)public void setAutowireMode(int autowireMode)
autowireMode
- the autowire mode to set.
Must be one of the constants defined in AbstractBeanDefinition
.AbstractBeanDefinition.setAutowireMode(int)
public int getAutowireMode()
public void setDependencyCheck(int dependencyCheck)
dependencyCheck
- the code to set.
Must be one of the constants defined in AbstractBeanDefinition
.AbstractBeanDefinition.setDependencyCheck(int)
public int getDependencyCheck()
public void setInitMethodName(String initMethodName)
Note that this method is not enforced on all affected bean definitions but rather taken as an optional callback, to be invoked if actually present.
public String getInitMethodName()
public void setDestroyMethodName(String destroyMethodName)
Note that this method is not enforced on all affected bean definitions but rather taken as an optional callback, to be invoked if actually present.
public String getDestroyMethodName()