BeanDefinitionStoreException indicating an invalid override
attempt: typically registering a new definition for the same bean name while
DefaultListableBeanFactory#isAllowBeanDefinitionOverriding() is false.
DefaultListableBeanFactory#setAllowBeanDefinitionOverriding, DefaultListableBeanFactory#registerBeanDefinition
| Modifier and Type | Field and Description |
|---|---|
| private final BeanDefinition | |
| private final BeanDefinition |
| Access | Constructor and Description |
|---|---|
| public | BeanDefinitionOverrideException(String
the name of the bean beanName, BeanDefinition the newly registered bean definition beanDefinition, BeanDefinition the existing bean definition for the same name existingDefinition)Create a new BeanDefinitionOverrideException for the given new and existing definition. |
| Modifier and Type | Method and Description |
|---|---|
| public BeanDefinition | |
| public String | getBeanName()
Overrides org. Return the name of the bean. |
| public BeanDefinition | |
| public String | getResourceDescription()
Overrides org. Return the description of the resource that the bean definition came from. |
| beanDefinition | back to summary |
|---|---|
| private final BeanDefinition beanDefinition | |
| existingDefinition | back to summary |
|---|---|
| private final BeanDefinition existingDefinition | |
| BeanDefinitionOverrideException | back to summary |
|---|---|
| public BeanDefinitionOverrideException(String beanName, BeanDefinition beanDefinition, BeanDefinition existingDefinition) Create a new BeanDefinitionOverrideException for the given new and existing definition.
| |
| getBeanDefinition | back to summary |
|---|---|
| public BeanDefinition getBeanDefinition() Return the newly registered bean definition.
| |
| getBeanName | back to summary |
|---|---|
| public String getBeanName() Overrides org. Return the name of the bean. | |
| getExistingDefinition | back to summary |
|---|---|
| public BeanDefinition getExistingDefinition() Return the existing bean definition for the same name.
| |
| getResourceDescription | back to summary |
|---|---|
| public String getResourceDescription() Overrides org. Return the description of the resource that the bean definition came from. | |