| org.springframework.beans.BeansException org.springframework.beans.factory.NoSuchBeanDefinitionException
NoSuchBeanDefinitionException | public class NoSuchBeanDefinitionException extends BeansException (Code) | | Exception thrown when a BeanFactory is asked for a bean
instance name for which it cannot find a definition.
author: Rod Johnson author: Juergen Hoeller |
Method Summary | |
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. |
NoSuchBeanDefinitionException | public NoSuchBeanDefinitionException(String name)(Code) | | Create a new NoSuchBeanDefinitionException.
Parameters: name - the name of the missing bean |
NoSuchBeanDefinitionException | public NoSuchBeanDefinitionException(String name, String message)(Code) | | Create a new NoSuchBeanDefinitionException.
Parameters: name - the name of the missing bean Parameters: message - further, detailed message describing the problem |
NoSuchBeanDefinitionException | public NoSuchBeanDefinitionException(Class type, String message)(Code) | | Create a new NoSuchBeanDefinitionException.
Parameters: type - required type of bean Parameters: message - further, detailed message describing the problem |
getBeanName | public String getBeanName()(Code) | | Return the name of the missing bean,
if it was a lookup by name that failed.
|
getBeanType | public Class getBeanType()(Code) | | Return the required type of bean,
if it was a lookup by type that failed.
|
|
|