@spring Class Level Tag Usage

@spring.bean (0..1)

Defines a Spring bean.

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

@spring.property (0..*)

Defines a property which may be defined in a superclass, but not in this particular bean class.

Parameter Type Applicability Description Mandatory
ref text The id of another bean to wire to the property. false
list text Comma-separated list of values to assign as a List to a property of type java.util.List. false
name text The name of the property to be wired. true
value text The value to assign to the property. false

@spring Method Level Tag Usage

@spring.constructor-arg (0..*)

Wires a bean constructor argument.

Parameter Type Applicability Description Mandatory
ref text The id of another bean to wire to the constructor argument. false
list text Comma-separated list of values to assign as a List to a constructor argument of type java.util.List. false
value text The value to assign to the constructor argument. false

@spring.property (0..*)

Declares a bean property.

Parameter Type Applicability Description Mandatory
ref text The id of another bean to wire to the property. false
list text Comma-separated list of values to assign as a List to a property of type java.util.List. false
value text The value to assign to the property. false