Example usage for Java org.springframework.beans.factory.support RootBeanDefinition fields, constructors, methods, implement or subclass
The text is from its open source code.
RootBeanDefinition(@Nullable Class> beanClass) Create a new RootBeanDefinition for a singleton. | |
RootBeanDefinition(String beanClassName) Create a new RootBeanDefinition for a singleton, providing constructor arguments and property values. | |
RootBeanDefinition(RootBeanDefinition original) Create a new RootBeanDefinition as deep copy of the given bean definition. | |
RootBeanDefinition(BeanDefinition original) Create a new RootBeanDefinition as deep copy of the given bean definition. | |
RootBeanDefinition() Create a new RootBeanDefinition, to be configured through its bean properties and configuration methods. | |
RootBeanDefinition(@Nullable Class Create a new RootBeanDefinition for a singleton bean, constructing each instance through calling the given supplier (possibly a lambda or method reference). | |
RootBeanDefinition(@Nullable Class Create a new RootBeanDefinition for a scoped bean, constructing each instance through calling the given supplier (possibly a lambda or method reference). | |
RootBeanDefinition(@Nullable Class> beanClass, int autowireMode, boolean dependencyCheck) Create a new RootBeanDefinition for a singleton, using the given autowire mode. | |
RootBeanDefinition(@Nullable Class> beanClass, @Nullable ConstructorArgumentValues cargs, @Nullable MutablePropertyValues pvs) Create a new RootBeanDefinition for a singleton, providing constructor arguments and property values. | |
RootBeanDefinition(String beanClassName, ConstructorArgumentValues cargs, MutablePropertyValues pvs) Create a new RootBeanDefinition for a singleton, providing constructor arguments and property values. |
void | addQualifier(AutowireCandidateQualifier qualifier) Register a qualifier to be used for autowire candidate resolution, keyed by the qualifier's type name. |
RootBeanDefinition | cloneBeanDefinition() |
void | copyQualifiersFrom(AbstractBeanDefinition source) Copy the qualifiers from the supplied AbstractBeanDefinition to this bean definition. |
Object | getAttribute(String name) |
Class> | getBeanClass() Return the class of the wrapped bean (assuming it is resolved already). |
String | getBeanClassName() Return the current bean class name of this bean definition. |
ConstructorArgumentValues | getConstructorArgumentValues() Return constructor argument values for this bean (never null ). |
int | getDependencyCheck() Return the dependency check code. |
String[] | getDependsOn() Return the bean names that this bean depends on. |
String | getDestroyMethodName() Return the name of the destroy method. |
String | getFactoryBeanName() Return the factory bean name, if any. |
String | getFactoryMethodName() Return a factory method, if any. |
String | getInitMethodName() Return the name of the initializer method. |
Supplier> | getInstanceSupplier() Return a callback for creating an instance of the bean, if any. |
MethodOverrides | getMethodOverrides() Return information about methods to be overridden by the IoC container. |
BeanDefinition | getOriginatingBeanDefinition() Return the originating BeanDefinition, or null if none. |
String | getParentName() |
MutablePropertyValues | getPropertyValues() Return property values for this bean (never null ). |
int | getResolvedAutowireMode() Return the resolved autowire code, (resolving AUTOWIRE_AUTODETECT to AUTOWIRE_CONSTRUCTOR or AUTOWIRE_BY_TYPE). |
String | getResourceDescription() Return a description of the resource that this bean definition came from (for the purpose of showing context in case of errors). |
Class> | getTargetType() Return the target type of this bean definition, if known (either specified in advance or resolved on first instantiation). |
boolean | hasBeanClass() Return whether this definition specifies a bean class. |
boolean | hasConstructorArgumentValues() Return if there are constructor argument values defined for this bean. |
boolean | hasPropertyValues() Return if there are property values values defined for this bean. |
boolean | isAbstract() Return whether this bean is "abstract", i.e. |
boolean | isEnforceDestroyMethod() Indicate whether the configured destroy method is the default. |
boolean | isEnforceInitMethod() Indicate whether the configured init method is the default. |
boolean | isExternallyManagedConfigMember(Member configMember) |
boolean | isExternallyManagedDestroyMethod(String destroyMethod) |
boolean | isExternallyManagedInitMethod(String initMethod) |
boolean | isFactoryMethod(Method candidate) Check whether the given candidate qualifies as a factory method. |
boolean | isLazyInit() Return whether this bean should be lazily initialized, i.e. |
boolean | isLenientConstructorResolution() Return whether to resolve constructors in lenient mode or in strict mode. |
boolean | isNonPublicAccessAllowed() Return whether to allow access to non-public constructors and methods. |
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 from all calls. |
boolean | isSynthetic() Return whether this bean definition is 'synthetic', that is, not defined by the application itself. |
void | overrideFrom(BeanDefinition other) Override settings in this bean definition (presumably a copied parent from a parent-child inheritance relationship) from the given bean definition (presumably the child). |
void | prepareMethodOverrides() Validate and prepare the method overrides defined for this bean. |
void | registerExternallyManagedConfigMember(Member configMember) |
Class> | resolveBeanClass(@Nullable ClassLoader classLoader) Determine the class of the wrapped bean, resolving it from a specified class name if necessary. |
void | setAbstract(boolean abstractFlag) Set if this bean is "abstract", i.e. |
void | setAttribute(String name, @Nullable Object value) |
void | setAutowireCandidate(boolean autowireCandidate) Set whether this bean is a candidate for getting autowired into some other bean. |
void | setAutowireMode(int autowireMode) Set the autowire mode. |
void | setBeanClass(@Nullable Class> beanClass) Specify the class for this bean. |
void | setBeanClassName(@Nullable String beanClassName) Specify the bean class name of this bean definition. |
void | setConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues) Specify constructor argument values for this bean. |
void | setDependencyCheck(int dependencyCheck) Set the dependency check code. |
void | setDependsOn(@Nullable String... dependsOn) Set the names of the beans that this bean depends on being initialized. |
void | setDestroyMethodName(@Nullable String destroyMethodName) Set the name of the destroy method. |
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 | setInitMethodName(@Nullable String initMethodName) Set the name of the initializer method. |
void | setLazyInit(boolean lazyInit) Set whether this bean should be lazily initialized. |
void | setOriginatingBeanDefinition(BeanDefinition originatingBd) Set the originating (e.g. |
void | setPrimary(boolean primary) Set whether this bean is a primary autowire candidate. |
void | setPropertyValues(MutablePropertyValues propertyValues) Specify property values for this bean, if any. |
void | setRole(int role) Set the role hint for this BeanDefinition . |
void | setScope(@Nullable String scope) Set the name of the target scope for the bean. |
void | setSource(@Nullable Object source) Set the configuration source Object for this metadata element. |
void | setSynthetic(boolean synthetic) Set whether this bean definition is 'synthetic', that is, not defined by the application itself (for example, an infrastructure bean such as a helper for auto-proxying, created through |
void | setTargetType(ResolvableType targetType) Specify a generics-containing target type of this bean definition, if known in advance. |
void | setTargetType(@Nullable Class> targetType) Specify the target type of this bean definition, if known in advance. |
void | validate() Validate this bean definition. |