public class BeanDefinitionDefaults extends Object
BeanDefinition property defaults.| 构造器和说明 |
|---|
BeanDefinitionDefaults() |
| 限定符和类型 | 方法和说明 |
|---|---|
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. not
eagerly instantiated on startup.
|
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.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
String initMethodName)
@Nullable public String getInitMethodName()
public void setDestroyMethodName(@Nullable
String destroyMethodName)
@Nullable public String getDestroyMethodName()