Class DocumentDefaultsDefinition
- java.lang.Object
- org.springframework.beans.factory.xml.DocumentDefaultsDefinition
- All Implemented Interfaces:
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.- Since:
- 2.0.2
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description DocumentDefaultsDefinition()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAutowire()Return the default autowire setting for the document that's currently parsed.StringgetAutowireCandidates()Return the default autowire-candidate pattern for the document that's currently parsed.StringgetDependencyCheck()Return the default dependency-check setting for the document that's currently parsed.StringgetDestroyMethod()Return the default destroy-method setting for the document that's currently parsed.StringgetInitMethod()Return the default init-method setting for the document that's currently parsed.StringgetLazyInit()Return the default lazy-init flag for the document that's currently parsed.StringgetMerge()Return the default merge setting for the document that's currently parsed.ObjectgetSource()Return the configuration sourceObjectfor this metadata element (may benull).voidsetAutowire(String autowire)Set the default autowire setting for the document that's currently parsed.voidsetAutowireCandidates(String autowireCandidates)Set the default autowire-candidate pattern for the document that's currently parsed.voidsetDependencyCheck(String dependencyCheck)Set the default dependency-check setting for the document that's currently parsed.voidsetDestroyMethod(String destroyMethod)Set the default destroy-method setting for the document that's currently parsed.voidsetInitMethod(String initMethod)Set the default init-method setting for the document that's currently parsed.voidsetLazyInit(String lazyInit)Set the default lazy-init flag for the document that's currently parsed.voidsetMerge(String merge)Set the default merge setting for the document that's currently parsed.voidsetSource(Object source)Set the configuration sourceObjectfor this metadata element.
Constructor Detail
DocumentDefaultsDefinition
public DocumentDefaultsDefinition()
Method Detail
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 sourceObjectfor this metadata element.The exact type of the object will depend on the configuration mechanism used.
getSource
public Object getSource()
Description copied from interface:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).- Specified by:
getSourcein interfaceBeanMetadataElement