Role hint indicating that a BeanDefinition is a supporting
part of some larger configuration, typically an outer
SUPPORT beans are considered important enough to be aware
of when looking more closely at a particular
but not when looking at the overall configuration of an application.
Role hint indicating that a BeanDefinition is providing an
entirely background role and has no relevance to the end-user. This hint is
used when registering beans that are completely part of the internal workings
of a ComponentDefinition.
Return the current bean class name of this bean definition.
Note that this does not have to be the actual class name used at runtime, in
case of a child definition overriding/inheriting the class name from its parent.
Also, this may just be the class that a factory method is called on, or it may
even be empty in case of a factory bean reference that a method is called on.
Hence, do not consider this to be the definitive bean type at runtime but
rather only use it for parsing purposes at the individual bean definition level.
Set whether this bean is a candidate for getting autowired into some other bean.
Note that this flag is designed to only affect type-based autowiring.
It does not affect explicit references by name, which will get resolved even
if the specified bean is not marked as an autowire candidate. As a consequence,
autowiring by name will nevertheless inject a bean if the name matches.
Return whether this bean is a candidate for getting autowired into some other bean.
void setPrimary(boolean primary)
Set whether this bean is a primary autowire candidate.
If this value is true for exactly one bean among multiple
matching candidates, it will serve as a tie-breaker.
Return whether this bean is a primary autowire candidate.
Specify a factory method, if any. This method will be invoked with
constructor arguments, or with no arguments if none are specified.
The method will be invoked on the specified factory bean, if any,
or otherwise as a static method on the local bean class.