public class

NoSuchBeanDefinitionException

extends BeansException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.beans.BeansException
             ↳ org.springframework.beans.factory.NoSuchBeanDefinitionException

Class Overview

Exception thrown when a BeanFactory is asked for a bean instance name for which it cannot find a definition.

Summary

Public Constructors
NoSuchBeanDefinitionException(String name)
Create a new NoSuchBeanDefinitionException.
NoSuchBeanDefinitionException(String name, String message)
Create a new NoSuchBeanDefinitionException.
NoSuchBeanDefinitionException(Class type)
Create a new NoSuchBeanDefinitionException.
NoSuchBeanDefinitionException(Class type, String message)
Create a new NoSuchBeanDefinitionException.
NoSuchBeanDefinitionException(Class type, String dependencyDescription, String message)
Create a new NoSuchBeanDefinitionException.
Public Methods
String getBeanName()
Return the name of the missing bean, if it was a lookup by name that failed.
Class getBeanType()
Return the required type of bean, if it was a lookup by type that failed.
[Expand]
Inherited Methods
From class org.springframework.beans.BeansException
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public NoSuchBeanDefinitionException (String name)

Also: SpringBeans

Create a new NoSuchBeanDefinitionException.

Parameters
name the name of the missing bean

public NoSuchBeanDefinitionException (String name, String message)

Also: SpringBeans

Create a new NoSuchBeanDefinitionException.

Parameters
name the name of the missing bean
message detailed message describing the problem

public NoSuchBeanDefinitionException (Class type)

Also: SpringBeans

Create a new NoSuchBeanDefinitionException.

Parameters
type required type of bean

public NoSuchBeanDefinitionException (Class type, String message)

Also: SpringBeans

Create a new NoSuchBeanDefinitionException.

Parameters
type required type of bean
message detailed message describing the problem

public NoSuchBeanDefinitionException (Class type, String dependencyDescription, String message)

Also: SpringBeans

Create a new NoSuchBeanDefinitionException.

Parameters
type required type of bean
dependencyDescription a description of the originating dependency
message detailed message describing the problem

Public Methods

public String getBeanName ()

Also: SpringBeans

Return the name of the missing bean, if it was a lookup by name that failed.

public Class getBeanType ()

Also: SpringBeans

Return the required type of bean, if it was a lookup by type that failed.