Java org.springframework.beans.factory.config BeanDefinition fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.beans.factory.config BeanDefinition fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.beans.factory.config BeanDefinition.

The text is from its open source code.

Field

StringSCOPE_SINGLETON
Scope identifier for the standard singleton scope: "singleton".
StringSCOPE_PROTOTYPE
Scope identifier for the standard prototype scope: "prototype".
intROLE_APPLICATION
Role hint indicating that a BeanDefinition is a major part of the application.
intROLE_SUPPORT
Role hint indicating that a BeanDefinition is a supporting part of some larger configuration, typically an outer org.springframework.beans.factory.parsing.ComponentDefinition .
intROLE_INFRASTRUCTURE
Role hint indicating that a BeanDefinition is providing an entirely background role and has no relevance to the end-user.

Method

String[]attributeNames()
Return the names of all attributes.
ObjectgetAttribute(String name)
Get the value of the attribute identified by name .
StringgetBeanClassName()
Return the current bean class name of this bean definition.
ClassgetClass()
Returns the runtime class of this Object .
ConstructorArgumentValuesgetConstructorArgumentValues()
Return the constructor argument values for this bean.
String[]getDependsOn()
Return the bean names that this bean depends on.
StringgetFactoryBeanName()
Return the factory bean name, if any.
StringgetFactoryMethodName()
Return a factory method, if any.
BeanDefinitiongetOriginatingBeanDefinition()
Return the originating BeanDefinition, or null if none.
StringgetParentName()
Return the name of the parent definition of this bean definition, if any.
MutablePropertyValuesgetPropertyValues()
Return the property values to be applied to a new instance of the bean.
StringgetResourceDescription()
Return a description of the resource that this bean definition came from (for the purpose of showing context in case of errors).
intgetRole()
Get the role hint for this BeanDefinition .
StringgetScope()
Return the name of the current target scope for this bean, or null if not known yet.
ObjectgetSource()
Return the configuration source Object for this metadata element (may be null ).
booleanhasAttribute(String name)
Return true if the attribute identified by name exists.
booleanisAbstract()
Return whether this bean is "abstract", that is, not meant to be instantiated.
booleanisAutowireCandidate()
Return whether this bean is a candidate for getting autowired into some other bean.
booleanisLazyInit()
Return whether this bean should be lazily initialized, i.e.
booleanisPrimary()
Return whether this bean is a primary autowire candidate.
booleanisPrototype()
Return whether this a Prototype, with an independent instance returned for each call.
booleanisSingleton()
Return whether this a Singleton, with a single, shared instance returned on all calls.
ObjectremoveAttribute(String name)
Remove the attribute identified by name and return its value.
voidsetAttribute(String name, @Nullable Object value)
Set the attribute defined by name to the supplied value .
voidsetAutowireCandidate(boolean autowireCandidate)
Set whether this bean is a candidate for getting autowired into some other bean.
voidsetBeanClassName(@Nullable String beanClassName)
Specify the bean class name of this bean definition.
voidsetDependsOn(@Nullable String... dependsOn)
Set the names of the beans that this bean depends on being initialized.
voidsetFactoryBeanName(@Nullable String factoryBeanName)
Specify the factory bean to use, if any.
voidsetFactoryMethodName(@Nullable String factoryMethodName)
Specify a factory method, if any.
voidsetLazyInit(boolean lazyInit)
Set whether this bean should be lazily initialized.
voidsetParentName(@Nullable String parentName)
Set the name of the parent definition of this bean definition, if any.
voidsetPrimary(boolean primary)
Set whether this bean is a primary autowire candidate.
voidsetRole(int role)
Set the role hint for this BeanDefinition .
voidsetScope(@Nullable String scope)
Override the target scope of this bean, specifying a new scope name.