# Uses of Class
org.springframework.beans.factory.NoSuchBeanDefinitionException

Packages that use NoSuchBeanDefinitionException
Package
Description
org.springframework.beans.factory
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
org.springframework.beans.factory.config
SPI interfaces and configuration-related convenience classes for bean factories.
org.springframework.beans.factory.support
Classes supporting the `org.springframework.beans.factory` package.

## Uses of NoSuchBeanDefinitionException in org.springframework.beans.factory

Subclasses of NoSuchBeanDefinitionException in org.springframework.beans.factory
Modifier and Type
Class
Description
`class`
`NoUniqueBeanDefinitionException`
Exception thrown when a `BeanFactory` is asked for a bean instance for which multiple matching candidates have been found when only one matching bean was expected.
Methods in org.springframework.beans.factory that throw NoSuchBeanDefinitionException
Modifier and Type
Method
Description
`<A extends Annotation>
Set<A>`
ListableBeanFactory.`findAllAnnotationsOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit)`
Find all `Annotation` instances of `annotationType` on the specified bean, traversing its interfaces and superclasses if no annotation can be found on the given class itself, as well as checking the bean's factory method (if any).
`<A extends Annotation>
A`
ListableBeanFactory.`findAnnotationOnBean(String beanName, Class<A> annotationType)`
Find an `Annotation` of `annotationType` on the specified bean, traversing its interfaces and superclasses if no annotation can be found on the given class itself, as well as checking the bean's factory method (if any).
`<A extends Annotation>
A`
ListableBeanFactory.`findAnnotationOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit)`
Find an `Annotation` of `annotationType` on the specified bean, traversing its interfaces and superclasses if no annotation can be found on the given class itself, as well as checking the bean's factory method (if any).
`Class<?>`
BeanFactory.`getType(String name)`
Determine the type of the bean with the given name.
`Class<?>`
BeanFactory.`getType(String name, boolean allowFactoryBeanInit)`
Determine the type of the bean with the given name.
`boolean`
BeanFactory.`isPrototype(String name)`
Is this bean a prototype? That is, will `BeanFactory.getBean(java.lang.String)` always return independent instances?
`boolean`
BeanFactory.`isSingleton(String name)`
Is this bean a shared singleton? That is, will `BeanFactory.getBean(java.lang.String)` always return the same instance?
`boolean`
BeanFactory.`isTypeMatch(String name, Class<?> typeToMatch)`
Check whether the bean with the given name matches the specified type.
`boolean`
BeanFactory.`isTypeMatch(String name, org.springframework.core.ResolvableType typeToMatch)`
Check whether the bean with the given name matches the specified type.

## Uses of NoSuchBeanDefinitionException in org.springframework.beans.factory.config

Methods in org.springframework.beans.factory.config that throw NoSuchBeanDefinitionException
Modifier and Type
Method
Description
`BeanDefinition`
ConfigurableListableBeanFactory.`getBeanDefinition(String beanName)`
Return the registered BeanDefinition for the specified bean, allowing access to its property values and constructor argument value (which can be modified during bean factory post-processing).
`BeanDefinition`
ConfigurableBeanFactory.`getMergedBeanDefinition(String beanName)`
Return a merged BeanDefinition for the given bean name, merging a child bean definition with its parent if necessary.
`boolean`
ConfigurableListableBeanFactory.`isAutowireCandidate(String beanName, DependencyDescriptor descriptor)`
Determine whether the specified bean qualifies as an autowire candidate, to be injected into other beans which declare a dependency of matching type.
`boolean`
ConfigurableBeanFactory.`isFactoryBean(String name)`
Determine whether the bean with the given name is a FactoryBean.

## Uses of NoSuchBeanDefinitionException in org.springframework.beans.factory.support

Methods in org.springframework.beans.factory.support that throw NoSuchBeanDefinitionException
Modifier and Type
Method
Description
`<A extends Annotation>
Set<A>`
DefaultListableBeanFactory.`findAllAnnotationsOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit)`
`<A extends Annotation>
Set<A>`
StaticListableBeanFactory.`findAllAnnotationsOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit)`
`<A extends Annotation>
A`
DefaultListableBeanFactory.`findAnnotationOnBean(String beanName, Class<A> annotationType)`
`<A extends Annotation>
A`
DefaultListableBeanFactory.`findAnnotationOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit)`
`<A extends Annotation>
A`
StaticListableBeanFactory.`findAnnotationOnBean(String beanName, Class<A> annotationType)`
`<A extends Annotation>
A`
StaticListableBeanFactory.`findAnnotationOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit)`
`BeanDefinition`
BeanDefinitionRegistry.`getBeanDefinition(String beanName)`
Return the BeanDefinition for the given bean name.
`BeanDefinition`
DefaultListableBeanFactory.`getBeanDefinition(String beanName)`
`BeanDefinition`
SimpleBeanDefinitionRegistry.`getBeanDefinition(String beanName)`
`Class<?>`
AbstractBeanFactory.`getType(String name)`
`Class<?>`
AbstractBeanFactory.`getType(String name, boolean allowFactoryBeanInit)`
`Class<?>`
StaticListableBeanFactory.`getType(String name)`
`Class<?>`
StaticListableBeanFactory.`getType(String name, boolean allowFactoryBeanInit)`
`boolean`
DefaultListableBeanFactory.`isAutowireCandidate(String beanName, DependencyDescriptor descriptor)`
`protected boolean`
DefaultListableBeanFactory.`isAutowireCandidate(String beanName, DependencyDescriptor descriptor, AutowireCandidateResolver resolver)`
Determine whether the specified bean definition qualifies as an autowire candidate, to be injected into other beans which declare a dependency of matching type.
`boolean`
AbstractBeanFactory.`isFactoryBean(String name)`
`boolean`
AbstractBeanFactory.`isPrototype(String name)`
`boolean`
StaticListableBeanFactory.`isPrototype(String name)`
`boolean`
AbstractBeanFactory.`isSingleton(String name)`
`boolean`
StaticListableBeanFactory.`isSingleton(String name)`
`boolean`
AbstractBeanFactory.`isTypeMatch(String name, Class<?> typeToMatch)`
`boolean`
AbstractBeanFactory.`isTypeMatch(String name, org.springframework.core.ResolvableType typeToMatch)`
`protected boolean`
AbstractBeanFactory.`isTypeMatch(String name, org.springframework.core.ResolvableType typeToMatch, boolean allowFactoryBeanInit)`
Internal extended variant of `AbstractBeanFactory.isTypeMatch(String, ResolvableType)` to check whether the bean with the given name matches the specified type.
`boolean`
StaticListableBeanFactory.`isTypeMatch(String name, Class<?> typeToMatch)`
`boolean`
StaticListableBeanFactory.`isTypeMatch(String name, org.springframework.core.ResolvableType typeToMatch)`
`void`
BeanDefinitionRegistry.`removeBeanDefinition(String beanName)`
Remove the BeanDefinition for the given name.
`void`
DefaultListableBeanFactory.`removeBeanDefinition(String beanName)`
`void`
SimpleBeanDefinitionRegistry.`removeBeanDefinition(String beanName)`