public class BeanDefinitionDefaults
extends java.lang.Object
BeanDefinition
property defaults.AbstractBeanDefinition.applyDefaults(org.springframework.beans.factory.support.BeanDefinitionDefaults)
Modifier and Type | Field and Description |
---|---|
private int |
autowireMode |
private int |
dependencyCheck |
private java.lang.String |
destroyMethodName |
private java.lang.String |
initMethodName |
private boolean |
lazyInit |
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.
|
java.lang.String |
getDestroyMethodName()
Return the name of the default destroy method.
|
java.lang.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(java.lang.String destroyMethodName)
Set the name of the default destroy method.
|
void |
setInitMethodName(java.lang.String initMethodName)
Set the name of the default initializer method.
|
void |
setLazyInit(boolean lazyInit)
Set whether beans should be lazily initialized by default.
|
private boolean lazyInit
private int autowireMode
private int dependencyCheck
private java.lang.String initMethodName
private java.lang.String destroyMethodName
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(java.lang.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 java.lang.String getInitMethodName()
public void setDestroyMethodName(java.lang.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 java.lang.String getDestroyMethodName()