Example usage for Java org.springframework.beans.factory.config BeanDefinition fields, constructors, methods, implement or subclass
The text is from its open source code.
String | SCOPE_SINGLETON Scope identifier for the standard singleton scope: "singleton". |
String | SCOPE_PROTOTYPE Scope identifier for the standard prototype scope: "prototype". |
int | ROLE_APPLICATION Role hint indicating that a BeanDefinition is a major part of the application. |
int | ROLE_SUPPORT Role hint indicating that a BeanDefinition is a supporting part of some larger configuration, typically an outer org.springframework.beans.factory.parsing.ComponentDefinition . |
int | ROLE_INFRASTRUCTURE Role hint indicating that a BeanDefinition is providing an entirely background role and has no relevance to the end-user. |
String[] | attributeNames() Return the names of all attributes. |
Object | getAttribute(String name) Get the value of the attribute identified by name . |
String | getBeanClassName() Return the current bean class name of this bean definition. |
Class> | getClass() Returns the runtime class of this Object . |
ConstructorArgumentValues | getConstructorArgumentValues() Return the constructor argument values for this bean. |
String[] | getDependsOn() Return the bean names that this bean depends on. |
String | getFactoryBeanName() Return the factory bean name, if any. |
String | getFactoryMethodName() Return a factory method, if any. |
BeanDefinition | getOriginatingBeanDefinition() Return the originating BeanDefinition, or null if none. |
String | getParentName() Return the name of the parent definition of this bean definition, if any. |
MutablePropertyValues | getPropertyValues() Return the property values to be applied to a new instance of the bean. |
String | getResourceDescription() Return a description of the resource that this bean definition came from (for the purpose of showing context in case of errors). |
int | getRole() Get the role hint for this BeanDefinition . |
String | getScope() Return the name of the current target scope for this bean, or null if not known yet. |
Object | getSource() Return the configuration source Object for this metadata element (may be null ). |
boolean | hasAttribute(String name) Return true if the attribute identified by name exists. |
boolean | isAbstract() Return whether this bean is "abstract", that is, not meant to be instantiated. |
boolean | isAutowireCandidate() Return whether this bean is a candidate for getting autowired into some other bean. |
boolean | isLazyInit() Return whether this bean should be lazily initialized, i.e. |
boolean | isPrimary() Return whether this bean is a primary autowire candidate. |
boolean | isPrototype() Return whether this a Prototype, with an independent instance returned for each call. |
boolean | isSingleton() Return whether this a Singleton, with a single, shared instance returned on all calls. |
Object | removeAttribute(String name) Remove the attribute identified by name and return its value. |
void | setAttribute(String name, @Nullable Object value) Set the attribute defined by name to the supplied value . |
void | setAutowireCandidate(boolean autowireCandidate) Set whether this bean is a candidate for getting autowired into some other bean. |
void | setBeanClassName(@Nullable String beanClassName) Specify the bean class name of this bean definition. |
void | setDependsOn(@Nullable String... dependsOn) Set the names of the beans that this bean depends on being initialized. |
void | setFactoryBeanName(@Nullable String factoryBeanName) Specify the factory bean to use, if any. |
void | setFactoryMethodName(@Nullable String factoryMethodName) Specify a factory method, if any. |
void | setLazyInit(boolean lazyInit) Set whether this bean should be lazily initialized. |
void | setParentName(@Nullable String parentName) Set the name of the parent definition of this bean definition, if any. |
void | setPrimary(boolean primary) Set whether this bean is a primary autowire candidate. |
void | setRole(int role) Set the role hint for this BeanDefinition . |
void | setScope(@Nullable String scope) Override the target scope of this bean, specifying a new scope name. |