spring-framework / org.springframework.beans.factory.xml / DocumentDefaultsDefinition

DocumentDefaultsDefinition

open class DocumentDefaultsDefinition : 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.

Author
Juergen Hoeller

Since
2.0.2

Constructors

<init>

DocumentDefaultsDefinition()

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.

Functions

getAutowire

open fun getAutowire(): String

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

getAutowireCandidates

open fun getAutowireCandidates(): String

Return the default autowire-candidate pattern for the document that's currently parsed. May also return a comma-separated list of patterns.

getDestroyMethod

open fun getDestroyMethod(): String

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

getInitMethod

open fun getInitMethod(): String

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

getLazyInit

open fun getLazyInit(): String

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

getMerge

open fun getMerge(): String

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

getSource

open fun getSource(): Any

setAutowire

open fun setAutowire(autowire: String): Unit

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

setAutowireCandidates

open fun setAutowireCandidates(autowireCandidates: String): Unit

Set the default autowire-candidate pattern for the document that's currently parsed. Also accepts a comma-separated list of patterns.

setDestroyMethod

open fun setDestroyMethod(destroyMethod: String): Unit

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

setInitMethod

open fun setInitMethod(initMethod: String): Unit

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

setLazyInit

open fun setLazyInit(lazyInit: String): Unit

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

setMerge

open fun setMerge(merge: String): Unit

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

setSource

open fun setSource(source: Any): Unit

Set the configuration source Object for this metadata element.

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