java.lang.Object | ||
↳ | org.springframework.core.SimpleAliasRegistry | |
↳ | org.springframework.beans.factory.support.SimpleBeanDefinitionRegistry |
Simple implementation of the BeanDefinitionRegistry
interface.
Provides registry capabilities only, with no factory capabilities built in.
Can for example be used for testing bean definition readers.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check if this registry contains a bean definition with the given name.
| |||||||||||
Return the BeanDefinition for the given bean name.
| |||||||||||
Return the number of beans defined in the registry.
| |||||||||||
Return the names of all beans defined in this registry.
| |||||||||||
Determine whether the given bean name is already in use within this registry,
i.e.
| |||||||||||
Register a new bean definition with this registry.
| |||||||||||
Remove the BeanDefinition for the given name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.SimpleAliasRegistry
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.support.BeanDefinitionRegistry
| |||||||||||
From interface
org.springframework.core.AliasRegistry
|
Check if this registry contains a bean definition with the given name.
beanName | the name of the bean to look for |
---|
Return the BeanDefinition for the given bean name.
beanName | name of the bean to find a definition for |
---|
null
)Return the number of beans defined in the registry.
Return the names of all beans defined in this registry.
Determine whether the given bean name is already in use within this registry, i.e. whether there is a local bean or alias registered under this name.
beanName | the name to check |
---|
Register a new bean definition with this registry. Must support RootBeanDefinition and ChildBeanDefinition.
beanName | the name of the bean instance to register |
---|---|
beanDefinition | definition of the bean instance to register |
BeanDefinitionStoreException |
---|
Remove the BeanDefinition for the given name.
beanName | the name of the bean instance to register |
---|