Top Description Fields Constructors Methods
org.springframework.beans.factory.xml

public Class DocumentDefaultsDefinition

extends Object
implements DefaultsDefinition
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.parsing.DefaultsDefinition, org.springframework.beans.BeanMetadataElement
Imports
org.springframework.beans.factory.parsing.DefaultsDefinition, org.springframework.lang.Nullable

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.
Author
Juergen Hoeller
Since
2.0.2

Field Summary

Modifier and TypeField and Description
private String
private String
private String
private String
private String
private String
private Object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getAutowire()

Return the default autowire setting for the document that's currently parsed.

public String
getAutowireCandidates()

Return the default autowire-candidate pattern for the document that's currently parsed.

public String
getDestroyMethod()

Return the default destroy-method setting for the document that's currently parsed.

public String
getInitMethod()

Return the default init-method setting for the document that's currently parsed.

public String
getLazyInit()

Return the default lazy-init flag for the document that's currently parsed.

public String
getMerge()

Return the default merge setting for the document that's currently parsed.

public Object
getSource()

Overrides default org.springframework.beans.BeanMetadataElement.getSource.

Return the configuration source Object for this metadata element (may be null).
public void
setAutowire(String autowire)

Set the default autowire setting for the document that's currently parsed.

public void
setAutowireCandidates(String autowireCandidates)

Set the default autowire-candidate pattern for the document that's currently parsed.

public void
setDestroyMethod(String destroyMethod)

Set the default destroy-method setting for the document that's currently parsed.

public void
setInitMethod(String initMethod)

Set the default init-method setting for the document that's currently parsed.

public void
setLazyInit(String lazyInit)

Set the default lazy-init flag for the document that's currently parsed.

public void
setMerge(String merge)

Set the default merge setting for the document that's currently parsed.

public void
setSource(Object source)

Set the configuration source Object for this metadata element.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

autowireback to summary
private String autowire
Annotations
@Nullable
autowireCandidatesback to summary
private String autowireCandidates
Annotations
@Nullable
destroyMethodback to summary
private String destroyMethod
Annotations
@Nullable
initMethodback to summary
private String initMethod
Annotations
@Nullable
lazyInitback to summary
private String lazyInit
Annotations
@Nullable
mergeback to summary
private String merge
Annotations
@Nullable
sourceback to summary
private Object source
Annotations
@Nullable

Constructor Detail

DocumentDefaultsDefinitionback to summary
public DocumentDefaultsDefinition()

Method Detail

getAutowireback to summary
public String getAutowire()

Return the default autowire setting for the document that's currently parsed.

Annotations
@Nullable
getAutowireCandidatesback to summary
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.

Annotations
@Nullable
getDestroyMethodback to summary
public String getDestroyMethod()

Return the default destroy-method setting for the document that's currently parsed.

Annotations
@Nullable
getInitMethodback to summary
public String getInitMethod()

Return the default init-method setting for the document that's currently parsed.

Annotations
@Nullable
getLazyInitback to summary
public String getLazyInit()

Return the default lazy-init flag for the document that's currently parsed.

Annotations
@Nullable
getMergeback to summary
public String getMerge()

Return the default merge setting for the document that's currently parsed.

Annotations
@Nullable
getSourceback to summary
public Object getSource()

Overrides default org.springframework.beans.BeanMetadataElement.getSource.

Doc from org.springframework.beans.BeanMetadataElement.getSource.

Return the configuration source Object for this metadata element (may be null).

Annotations
@Override
@Nullable
setAutowireback to summary
public void setAutowire(String autowire)

Set the default autowire setting for the document that's currently parsed.

setAutowireCandidatesback to summary
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.

setDestroyMethodback to summary
public void setDestroyMethod(String destroyMethod)

Set the default destroy-method setting for the document that's currently parsed.

setInitMethodback to summary
public void setInitMethod(String initMethod)

Set the default init-method setting for the document that's currently parsed.

setLazyInitback to summary
public void setLazyInit(String lazyInit)

Set the default lazy-init flag for the document that's currently parsed.

setMergeback to summary
public void setMerge(String merge)

Set the default merge setting for the document that's currently parsed.

setSourceback to summary
public void setSource(Object source)

Set the configuration source Object for this metadata element.

The exact type of the object will depend on the configuration mechanism used.