Uses of Class
org.springframework.beans.factory.NoSuchBeanDefinitionException
Package
Description
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
SPI interfaces and configuration-related convenience classes for bean factories.
Classes supporting the
org.springframework.beans.factory
package.Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Support classes for JNDI usage,
including a JNDI-based BeanFactory implementation.
Package providing integration of JPA (Java Persistence API) with Spring concepts.
Classes supporting the
org.springframework.orm.jpa
package.-
Uses of NoSuchBeanDefinitionException in org.springframework.beans.factory
Modifier and TypeClassDescriptionclass
Exception thrown when aBeanFactory
is asked for a bean instance for which multiple matching candidates have been found when only one matching bean was expected.Modifier and TypeMethodDescription<A extends Annotation>
Set<A>ListableBeanFactory.findAllAnnotationsOnBean
(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) Find allAnnotation
instances ofannotationType
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>
AListableBeanFactory.findAnnotationOnBean
(String beanName, Class<A> annotationType) Find anAnnotation
ofannotationType
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>
AListableBeanFactory.findAnnotationOnBean
(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) Find anAnnotation
ofannotationType
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<?>
Determine the type of the bean with the given name.Class<?>
Determine the type of the bean with the given name.boolean
BeanFactory.isPrototype
(String name) Is this bean a prototype? That is, willBeanFactory.getBean(java.lang.String)
always return independent instances?boolean
BeanFactory.isSingleton
(String name) Is this bean a shared singleton? That is, willBeanFactory.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, ResolvableType typeToMatch) Check whether the bean with the given name matches the specified type. -
Uses of NoSuchBeanDefinitionException in org.springframework.beans.factory.config
Modifier and TypeMethodDescriptionConfigurableListableBeanFactory.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).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
Modifier and TypeMethodDescription<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>
ADefaultListableBeanFactory.findAnnotationOnBean
(String beanName, Class<A> annotationType) <A extends Annotation>
ADefaultListableBeanFactory.findAnnotationOnBean
(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) <A extends Annotation>
AStaticListableBeanFactory.findAnnotationOnBean
(String beanName, Class<A> annotationType) <A extends Annotation>
AStaticListableBeanFactory.findAnnotationOnBean
(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) BeanDefinitionRegistry.getBeanDefinition
(String beanName) Return the BeanDefinition for the given bean name.DefaultListableBeanFactory.getBeanDefinition
(String beanName) SimpleBeanDefinitionRegistry.getBeanDefinition
(String beanName) Class<?>
Class<?>
Class<?>
Class<?>
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, ResolvableType typeToMatch) protected boolean
AbstractBeanFactory.isTypeMatch
(String name, ResolvableType typeToMatch, boolean allowFactoryBeanInit) Internal extended variant ofAbstractBeanFactory.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, ResolvableType typeToMatch) void
BeanDefinitionRegistry.removeBeanDefinition
(String beanName) Remove the BeanDefinition for the given name.void
DefaultListableBeanFactory.removeBeanDefinition
(String beanName) void
SimpleBeanDefinitionRegistry.removeBeanDefinition
(String beanName) -
Uses of NoSuchBeanDefinitionException in org.springframework.context.annotation
Modifier and TypeMethodDescriptionprotected Object
CommonAnnotationBeanPostProcessor.autowireResource
(BeanFactory factory, CommonAnnotationBeanPostProcessor.LookupElement element, String requestingBeanName) Obtain a resource object for the given name and type through autowiring based on the given factory.protected Object
CommonAnnotationBeanPostProcessor.getResource
(CommonAnnotationBeanPostProcessor.LookupElement element, String requestingBeanName) Obtain the resource object for the given name and type. -
Uses of NoSuchBeanDefinitionException in org.springframework.context.support
Modifier and TypeMethodDescription<A extends Annotation>
Set<A>AbstractApplicationContext.findAllAnnotationsOnBean
(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) <A extends Annotation>
AAbstractApplicationContext.findAnnotationOnBean
(String beanName, Class<A> annotationType) <A extends Annotation>
AAbstractApplicationContext.findAnnotationOnBean
(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) GenericApplicationContext.getBeanDefinition
(String beanName) Class<?>
Class<?>
boolean
AbstractApplicationContext.isPrototype
(String name) boolean
AbstractApplicationContext.isSingleton
(String name) boolean
AbstractApplicationContext.isTypeMatch
(String name, Class<?> typeToMatch) boolean
AbstractApplicationContext.isTypeMatch
(String name, ResolvableType typeToMatch) void
GenericApplicationContext.removeBeanDefinition
(String beanName) -
Uses of NoSuchBeanDefinitionException in org.springframework.jndi.support
Modifier and TypeMethodDescriptionClass<?>
Class<?>
boolean
SimpleJndiBeanFactory.isPrototype
(String name) boolean
SimpleJndiBeanFactory.isSingleton
(String name) boolean
SimpleJndiBeanFactory.isTypeMatch
(String name, Class<?> typeToMatch) boolean
SimpleJndiBeanFactory.isTypeMatch
(String name, ResolvableType typeToMatch) -
Uses of NoSuchBeanDefinitionException in org.springframework.orm.jpa
Modifier and TypeMethodDescriptionstatic EntityManagerFactory
EntityManagerFactoryUtils.findEntityManagerFactory
(ListableBeanFactory beanFactory, String unitName) Find an EntityManagerFactory with the given name in the given Spring application context (represented as ListableBeanFactory). -
Uses of NoSuchBeanDefinitionException in org.springframework.orm.jpa.support
Modifier and TypeMethodDescriptionprotected EntityManagerFactory
PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory
(String requestingBeanName) Find a single default EntityManagerFactory in the Spring application context.protected EntityManagerFactory
PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory
(String unitName, String requestingBeanName) Find an EntityManagerFactory with the given name in the current Spring application context, falling back to a single default EntityManagerFactory (if any) in case of no unit name specified.protected EntityManagerFactory
PersistenceAnnotationBeanPostProcessor.findNamedEntityManagerFactory
(String unitName, String requestingBeanName) Find an EntityManagerFactory with the given name in the current Spring application context.