Interface for registries that hold bean definitions, for example RootBeanDefinition
and ChildBeanDefinition instances. Typically implemented by BeanFactories that
internally work with the AbstractBeanDefinition hierarchy.
This is the only interface in Spring's bean factory packages that encapsulates
registration of bean definitions. The standard BeanFactory interfaces
only cover access to a fully configured factory instance.
Check if this registry contains a bean definition with the given name.
Parameters: beanName - the name of the bean to look for if this registry contains a bean definition with the given name
Return the aliases for the given bean name, if defined.
Parameters: beanName - the bean name to check for aliases the aliases, or an empty array if none
Return the BeanDefinition for the given bean name.
Parameters: beanName - name of the bean to find a definition for the BeanDefinition for the given name (never null) throws: NoSuchBeanDefinitionException - if there is no such bean definition
Given a bean name, create an alias. We typically use this method to
support names that are illegal within XML ids (used for bean names).
Parameters: beanName - the canonical name of the bean Parameters: alias - the alias to be registered for the bean throws: BeanDefinitionStoreException - if the alias is already in use
Register a new bean definition with this registry.
Must support RootBeanDefinition and ChildBeanDefinition.
Parameters: beanName - the name of the bean instance to register Parameters: beanDefinition - definition of the bean instance to register throws: BeanDefinitionStoreException - if the BeanDefinition is invalidor if there is already a BeanDefinition for the specified bean name(and we are not allowed to override it) See Also:RootBeanDefinition See Also:ChildBeanDefinition