Parameter
|
Type
|
Applicability
|
Description
|
Mandatory
|
autowire
|
text
|
|
Set's the autowiring mode for the bean. "byName" wires beans to properties by
matching the bean's name to the property name. "byType" wires beans to properties
by matching a bean's type to the property type. "constructor" wires beans through
a constructor's parameters by matching types. "auto-detect" allows Spring to
choose between "byType" and "constructor" as it sees fit. "no" indicates that
no auto-wiring should be performed on this bean.
Valid options are:
no
byName
byType
constructor
auto-detect
|
false
|
dependency-check
|
text
|
|
Sets dependency checking rules on a bean. "none" indicates no dependency checking.
"simple" dependency checking includes primitives and String.
"objects" dependency checking includes collaborators (other beans).
"all" performs both "simple" and "objects" dependency checking.
Valid options are:
none
objects
simple
all
|
false
|
description
|
text
|
|
Describes the bean.
|
false
|
destroy-method
|
text
|
|
The name of an method to be invoked on bean factory shutdown.
|
false
|
init-method
|
text
|
|
The name of an initialization method to be invoked upon bean instantiation.
|
false
|
lazy-init
|
bool
|
|
If "true", Spring will instantiate this bean when it's needed,
rather than at bean factory startup.
|
false
|
singleton
|
bool
|
|
If "true", one shared instance of this bean will be returned with
every call to getBean(). If "false" each call results in a new
instance.
Default value(s):
true
|
false
|