Class DocumentDefaultsDefinition
java.lang.Object
org.springframework.beans.factory.xml.DocumentDefaultsDefinition
- All Implemented Interfaces:
BeanMetadataElement
,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
-
Method Summary
Modifier and TypeMethodDescriptionReturn the default autowire setting for the document that's currently parsed.Return the default autowire-candidate pattern for the document that's currently parsed.Return the default destroy-method setting for the document that's currently parsed.Return the default init-method setting for the document that's currently parsed.Return the default lazy-init flag for the document that's currently parsed.getMerge()
Return the default merge setting for the document that's currently parsed.Return the configuration sourceObject
for this metadata element (may benull
).void
setAutowire
(@Nullable String autowire) Set the default autowire setting for the document that's currently parsed.void
setAutowireCandidates
(@Nullable String autowireCandidates) Set the default autowire-candidate pattern for the document that's currently parsed.void
setDestroyMethod
(@Nullable String destroyMethod) Set the default destroy-method setting for the document that's currently parsed.void
setInitMethod
(@Nullable String initMethod) Set the default init-method setting for the document that's currently parsed.void
setLazyInit
(@Nullable String lazyInit) Set the default lazy-init flag for the document that's currently parsed.void
Set the default merge setting for the document that's currently parsed.void
Set the configuration sourceObject
for this metadata element.
-
Constructor Details
-
DocumentDefaultsDefinition
public DocumentDefaultsDefinition()
-
-
Method Details
-
setLazyInit
Set the default lazy-init flag for the document that's currently parsed. -
getLazyInit
Return the default lazy-init flag for the document that's currently parsed. -
setMerge
Set the default merge setting for the document that's currently parsed. -
getMerge
Return the default merge setting for the document that's currently parsed. -
setAutowire
Set the default autowire setting for the document that's currently parsed. -
getAutowire
Return the default autowire setting for the document that's currently parsed. -
setAutowireCandidates
Set the default autowire-candidate pattern for the document that's currently parsed. Also accepts a comma-separated list of patterns. -
getAutowireCandidates
Return the default autowire-candidate pattern for the document that's currently parsed. May also return a comma-separated list of patterns. -
setInitMethod
Set the default init-method setting for the document that's currently parsed. -
getInitMethod
Return the default init-method setting for the document that's currently parsed. -
setDestroyMethod
Set the default destroy-method setting for the document that's currently parsed. -
getDestroyMethod
Return the default destroy-method setting for the document that's currently parsed. -
setSource
Set the configuration sourceObject
for this metadata element.The exact type of the object will depend on the configuration mechanism used.
-
getSource
Description copied from interface:BeanMetadataElement
Return the configuration sourceObject
for this metadata element (may benull
).- Specified by:
getSource
in interfaceBeanMetadataElement
-