Home » Spring-Framework-090522 » org.springframework » beans » factory » [javadoc | source]
org.springframework.beans.factory
public class: NoSuchBeanDefinitionException [javadoc | source]
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

All Implemented Interfaces:
    Serializable

Exception thrown when a BeanFactory is asked for a bean instance name for which it cannot find a definition.
Fields inherited from java.lang.RuntimeException:
serialVersionUID
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public NoSuchBeanDefinitionException(String name) 
    Create a new NoSuchBeanDefinitionException.
    Parameters:
    name - the name of the missing bean
 public NoSuchBeanDefinitionException(String name,
    String message) 
    Create a new NoSuchBeanDefinitionException.
    Parameters:
    name - the name of the missing bean
    message - detailed message describing the problem
 public NoSuchBeanDefinitionException(Class type,
    String message) 
    Create a new NoSuchBeanDefinitionException.
    Parameters:
    type - required type of bean
    message - detailed message describing the problem
 public NoSuchBeanDefinitionException(Class type,
    String dependencyDescription,
    String message) 
    Create a new NoSuchBeanDefinitionException.
    Parameters:
    type - required type of bean
    dependencyDescription - a description of the originating dependency
    message - detailed message describing the problem
Method from org.springframework.beans.factory.NoSuchBeanDefinitionException Summary:
getBeanName,   getBeanType
Methods from org.springframework.beans.BeansException:
equals,   hashCode
Methods from org.springframework.core.NestedRuntimeException:
contains,   getMessage,   getMostSpecificCause,   getRootCause
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.factory.NoSuchBeanDefinitionException Detail:
 public String getBeanName() 
    Return the name of the missing bean, if it was a lookup by name that failed.
 public Class getBeanType() 
    Return the required type of bean, if it was a lookup by type that failed.