|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class NoSuchBeanDefinitionException
Exception thrown when a BeanFactory is asked for a bean instance name for which it cannot find a definition.
Constructor Summary | |
---|---|
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. |
|
NoSuchBeanDefinitionException(String name)
Create a new NoSuchBeanDefinitionException. |
|
NoSuchBeanDefinitionException(String name,
String message)
Create a new NoSuchBeanDefinitionException. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.beans.BeansException |
---|
equals, hashCode |
Methods inherited from class org.springframework.core.NestedRuntimeException |
---|
contains, getMessage, getMostSpecificCause, getRootCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NoSuchBeanDefinitionException(String name)
name
- the name of the missing beanpublic NoSuchBeanDefinitionException(String name, String message)
name
- the name of the missing beanmessage
- detailed message describing the problempublic NoSuchBeanDefinitionException(Class type)
type
- required type of beanpublic NoSuchBeanDefinitionException(Class type, String message)
type
- required type of beanmessage
- detailed message describing the problempublic NoSuchBeanDefinitionException(Class type, String dependencyDescription, String message)
type
- required type of beandependencyDescription
- a description of the originating dependencymessage
- detailed message describing the problemMethod Detail |
---|
public String getBeanName()
public Class getBeanType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |