Skip to main content
Administrator Guide
Last Updated: 2023-06-23
Reference: Individual Bean Properties

Reference: Individual Bean Properties

Property
XML Attribute Name
Description
Id
id
The unique ID of the custom bean element within the assembly.
Abstract
abstract
Indicates whether the bean is usable only as a parent bean definition that will serve as a template for child definitions. The default value is
false
.
Autowire
autowire
Inspects the
BeanFactory
to resolve beans automatically.
Autowire Candidate
autowire-candidate
Enables you to limit autowiring to a set of bean candidates based on pattern matching against bean names.
Class
class
The implementation class name.
Dependency Check
dependency-check
Indicates whether Studio checks for unresolved bean dependencies.
Depends On
depends-on
Forces initialization of one or more beans before the bean using this element initializes. To express dependency on multiple beans, list their names separated by commas, whitespace, or semicolons.
Destroy Method
destroy-method
Checks the bean for the specified destroy callback method.
Factory Bean
factory-bean
The bean in the current or parent container that holds the instance method whose invocation creates the object.
Factory Method
factory-method
The name of the factory method to use when instantiating the bean.
Init Method
init-method
A generic initialization method for the bean.
Lazy Init
lazy-init
Indicates whether the bean instance should be created at startup or when first requested. If you don't want a singleton bean to be preinstantiated when using an
ApplicationContext
, set to
true
. By default, this property takes its value from the container-level setting.
Name
name
A name for the bean.
Parent
parent
The parent bean. If specified, the current bean inherits its configuration data.
Primary
primary
Designates the current bean definition as the primary autowire candidate. The default value is
false
.
Scope
scope
The scope of the objects created from the bean definition. The default value is
singleton
.