public class BeanDefinitionDefaults
extends java.lang.Object
BeanDefinition
property defaults.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
@Nullable private java.lang.String initMethodName
@Nullable 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
.public int getAutowireMode()
public void setDependencyCheck(int dependencyCheck)
dependencyCheck
- the code to set.
Must be one of the constants defined in AbstractBeanDefinition
.public int getDependencyCheck()
public void setInitMethodName(@Nullable java.lang.String initMethodName)
@Nullable public java.lang.String getInitMethodName()
public void setDestroyMethodName(@Nullable java.lang.String destroyMethodName)
@Nullable public java.lang.String getDestroyMethodName()