类 DocumentDefaultsDefinition
- java.lang.Object
- org.springframework.beans.factory.xml.DocumentDefaultsDefinition
- 所有已实现的接口:
BeanMetadataElement
,DefaultsDefinition
public class DocumentDefaultsDefinition extends Object implements DefaultsDefinition
Simple JavaBean that holds the defaults specified at the<beans>
level in a standard Spring XML bean definition document:default-lazy-init
,default-autowire
, etc.- 从以下版本开始:
- 2.0.2
- 作者:
- Juergen Hoeller
构造器概要
构造器 构造器 说明 DocumentDefaultsDefinition()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getAutowire()
Return the default autowire setting for the document that's currently parsed.String
getAutowireCandidates()
Return the default autowire-candidate pattern for the document that's currently parsed.String
getDependencyCheck()
Return the default dependency-check setting for the document that's currently parsed.String
getDestroyMethod()
Return the default destroy-method setting for the document that's currently parsed.String
getInitMethod()
Return the default init-method setting for the document that's currently parsed.String
getLazyInit()
Return the default lazy-init flag for the document that's currently parsed.String
getMerge()
Return the default merge setting for the document that's currently parsed.Object
getSource()
Return the configuration sourceObject
for this metadata element (may benull
).void
setAutowire(String autowire)
Set the default autowire setting for the document that's currently parsed.void
setAutowireCandidates(String autowireCandidates)
Set the default autowire-candidate pattern for the document that's currently parsed.void
setDependencyCheck(String dependencyCheck)
Set the default dependency-check setting for the document that's currently parsed.void
setDestroyMethod(String destroyMethod)
Set the default destroy-method setting for the document that's currently parsed.void
setInitMethod(String initMethod)
Set the default init-method setting for the document that's currently parsed.void
setLazyInit(String lazyInit)
Set the default lazy-init flag for the document that's currently parsed.void
setMerge(String merge)
Set the default merge setting for the document that's currently parsed.void
setSource(Object source)
Set the configuration sourceObject
for this metadata element.
构造器详细资料
DocumentDefaultsDefinition
public DocumentDefaultsDefinition()
方法详细资料
setLazyInit
public void setLazyInit(String lazyInit)
Set the default lazy-init flag for the document that's currently parsed.
getLazyInit
public String getLazyInit()
Return the default lazy-init flag for the document that's currently parsed.
setMerge
public void setMerge(String merge)
Set the default merge setting for the document that's currently parsed.
getMerge
public String getMerge()
Return the default merge setting for the document that's currently parsed.
setAutowire
public void setAutowire(String autowire)
Set the default autowire setting for the document that's currently parsed.
getAutowire
public String getAutowire()
Return the default autowire setting for the document that's currently parsed.
setDependencyCheck
public void setDependencyCheck(String dependencyCheck)
Set the default dependency-check setting for the document that's currently parsed.
getDependencyCheck
public String getDependencyCheck()
Return the default dependency-check setting for the document that's currently parsed.
setAutowireCandidates
public void setAutowireCandidates(String autowireCandidates)
Set the default autowire-candidate pattern for the document that's currently parsed. Also accepts a comma-separated list of patterns.
getAutowireCandidates
public String getAutowireCandidates()
Return the default autowire-candidate pattern for the document that's currently parsed. May also return a comma-separated list of patterns.
setInitMethod
public void setInitMethod(String initMethod)
Set the default init-method setting for the document that's currently parsed.
getInitMethod
public String getInitMethod()
Return the default init-method setting for the document that's currently parsed.
setDestroyMethod
public void setDestroyMethod(String destroyMethod)
Set the default destroy-method setting for the document that's currently parsed.
getDestroyMethod
public String getDestroyMethod()
Return the default destroy-method setting for the document that's currently parsed.
setSource
public void setSource(Object source)
Set the configuration sourceObject
for this metadata element.The exact type of the object will depend on the configuration mechanism used.
getSource
public Object getSource()
从接口复制的说明:BeanMetadataElement
Return the configuration sourceObject
for this metadata element (may benull
).- 指定者:
getSource
在接口中BeanMetadataElement