org.springframework.beans.factory
Class NoSuchBeanDefinitionException
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
- extends BeansException
Exception thrown when a BeanFactory is asked for a bean
instance name for which it cannot find a definition.
- Author:
- Rod Johnson
- Version: $Id: NoSuchBeanDefinitionException.java,v 1.3 2003/11/13 11:51:25 jhoeller Exp $
| Method Summary |
String | getBeanName() Return the name of the missing bean. |
Class | getBeanType() Return the required type of bean. |
| Methods inherited from class java.lang.Throwable |
printStackTrace, getStackTrace, setStackTrace, getLocalizedMessage, toString, fillInStackTrace, initCause |
| Methods inherited from class java.lang.Object |
hashCode, notify, notifyAll, wait, wait, wait, getClass, equals |
NoSuchBeanDefinitionException
public NoSuchBeanDefinitionException(String name, String message)
- Create new
NoSuchBeanDefinitionException.- Parameters:
- name - the name of the missing bean
- message - further, detailed message describing the problem.
NoSuchBeanDefinitionException
public NoSuchBeanDefinitionException(Class type, String message)
- Create new
NoSuchBeanDefinitionException.- Parameters:
- type - required type of bean
- message - further, detailed message describing the problem.
getBeanName
public String getBeanName()
- Return the name of the missing bean.
getBeanType
public Class getBeanType()
- Return the required type of bean.
to Class java.lang.String- Name of the missing bean
to Class java.lang.Class
- Required bean type