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