Uses of Class
org.springframework.beans.factory.NoSuchBeanDefinitionException
Packages that use 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
Subclasses of NoSuchBeanDefinitionException in org.springframework.beans.factoryModifier and TypeClassDescriptionclassException thrown when aBeanFactoryis 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 NoSuchBeanDefinitionExceptionModifier and TypeMethodDescription<A extends Annotation>
Set<A> ListableBeanFactory.findAllAnnotationsOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) Find allAnnotationinstances ofannotationTypeon 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>
@Nullable AListableBeanFactory.findAnnotationOnBean(String beanName, Class<A> annotationType) Find anAnnotationofannotationTypeon 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>
@Nullable AListableBeanFactory.findAnnotationOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) Find anAnnotationofannotationTypeon 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).Determine the type of the bean with the given name.Determine the type of the bean with the given name.booleanBeanFactory.isPrototype(String name) Is this bean a prototype? That is, willBeanFactory.getBean(String)always return independent instances?booleanBeanFactory.isSingleton(String name) Is this bean a shared singleton? That is, willBeanFactory.getBean(String)always return the same instance?booleanBeanFactory.isTypeMatch(String name, Class<?> typeToMatch) Check whether the bean with the given name matches the specified type.booleanBeanFactory.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
Methods in org.springframework.beans.factory.config that throw NoSuchBeanDefinitionExceptionModifier 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.booleanConfigurableListableBeanFactory.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.booleanConfigurableBeanFactory.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 NoSuchBeanDefinitionExceptionModifier 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>
@Nullable ADefaultListableBeanFactory.findAnnotationOnBean(String beanName, Class<A> annotationType) <A extends Annotation>
@Nullable ADefaultListableBeanFactory.findAnnotationOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) <A extends Annotation>
@Nullable AStaticListableBeanFactory.findAnnotationOnBean(String beanName, Class<A> annotationType) <A extends Annotation>
@Nullable 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) booleanDefaultListableBeanFactory.isAutowireCandidate(String beanName, DependencyDescriptor descriptor) protected booleanDefaultListableBeanFactory.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.booleanAbstractBeanFactory.isFactoryBean(String name) booleanAbstractBeanFactory.isPrototype(String name) booleanStaticListableBeanFactory.isPrototype(String name) booleanAbstractBeanFactory.isSingleton(String name) booleanStaticListableBeanFactory.isSingleton(String name) booleanAbstractBeanFactory.isTypeMatch(String name, Class<?> typeToMatch) booleanAbstractBeanFactory.isTypeMatch(String name, ResolvableType typeToMatch) protected booleanAbstractBeanFactory.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.booleanStaticListableBeanFactory.isTypeMatch(String name, Class<?> typeToMatch) booleanStaticListableBeanFactory.isTypeMatch(String name, ResolvableType typeToMatch) voidBeanDefinitionRegistry.removeBeanDefinition(String beanName) Remove the BeanDefinition for the given name.voidDefaultListableBeanFactory.removeBeanDefinition(String beanName) voidSimpleBeanDefinitionRegistry.removeBeanDefinition(String beanName) -
Uses of NoSuchBeanDefinitionException in org.springframework.context.annotation
Methods in org.springframework.context.annotation that throw NoSuchBeanDefinitionExceptionModifier and TypeMethodDescriptionprotected ObjectCommonAnnotationBeanPostProcessor.autowireResource(BeanFactory factory, CommonAnnotationBeanPostProcessor.LookupElement element, @Nullable String requestingBeanName) Obtain a resource object for the given name and type through autowiring based on the given factory.protected ObjectCommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.LookupElement element, @Nullable String requestingBeanName) Obtain the resource object for the given name and type. -
Uses of NoSuchBeanDefinitionException in org.springframework.context.support
Methods in org.springframework.context.support that throw NoSuchBeanDefinitionExceptionModifier and TypeMethodDescription<A extends Annotation>
Set<A> AbstractApplicationContext.findAllAnnotationsOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) <A extends Annotation>
@Nullable AAbstractApplicationContext.findAnnotationOnBean(String beanName, Class<A> annotationType) <A extends Annotation>
@Nullable AAbstractApplicationContext.findAnnotationOnBean(String beanName, Class<A> annotationType, boolean allowFactoryBeanInit) GenericApplicationContext.getBeanDefinition(String beanName) booleanAbstractApplicationContext.isPrototype(String name) booleanAbstractApplicationContext.isSingleton(String name) booleanAbstractApplicationContext.isTypeMatch(String name, Class<?> typeToMatch) booleanAbstractApplicationContext.isTypeMatch(String name, ResolvableType typeToMatch) voidGenericApplicationContext.removeBeanDefinition(String beanName) -
Uses of NoSuchBeanDefinitionException in org.springframework.jndi.support
Methods in org.springframework.jndi.support that throw NoSuchBeanDefinitionExceptionModifier and TypeMethodDescriptionbooleanSimpleJndiBeanFactory.isPrototype(String name) booleanSimpleJndiBeanFactory.isSingleton(String name) booleanSimpleJndiBeanFactory.isTypeMatch(String name, @Nullable Class<?> typeToMatch) booleanSimpleJndiBeanFactory.isTypeMatch(String name, ResolvableType typeToMatch) -
Uses of NoSuchBeanDefinitionException in org.springframework.orm.jpa
Methods in org.springframework.orm.jpa that throw NoSuchBeanDefinitionExceptionModifier and TypeMethodDescriptionstatic jakarta.persistence.EntityManagerFactoryEntityManagerFactoryUtils.findEntityManagerFactory(ListableBeanFactory beanFactory, @Nullable 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
Methods in org.springframework.orm.jpa.support that throw NoSuchBeanDefinitionExceptionModifier and TypeMethodDescriptionprotected jakarta.persistence.EntityManagerFactoryPersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(@Nullable String requestingBeanName) Find a single default EntityManagerFactory in the Spring application context.protected jakarta.persistence.EntityManagerFactoryPersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(@Nullable String unitName, @Nullable 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 jakarta.persistence.EntityManagerFactoryPersistenceAnnotationBeanPostProcessor.findNamedEntityManagerFactory(String unitName, @Nullable String requestingBeanName) Find an EntityManagerFactory with the given name in the current Spring application context.