SPR-5682: Initial support for ConfigurationClassApplicationContext

This commit is contained in:
Chris Beams
2009-10-05 00:35:17 +00:00
parent e7c8f1ef8b
commit a48234cf5f
6 changed files with 428 additions and 5 deletions

View File

@@ -53,6 +53,15 @@ public class NoSuchBeanDefinitionException extends BeansException {
this.beanName = name;
}
/**
* Create a new NoSuchBeanDefinitionException.
* @param type required type of bean
*/
public NoSuchBeanDefinitionException(Class type) {
super("No unique bean of type [" + type.getName() + "] is defined");
this.beanType = type;
}
/**
* Create a new NoSuchBeanDefinitionException.
* @param type required type of bean
@@ -62,7 +71,7 @@ public class NoSuchBeanDefinitionException extends BeansException {
super("No unique bean of type [" + type.getName() + "] is defined: " + message);
this.beanType = type;
}
/**
* Create a new NoSuchBeanDefinitionException.
* @param type required type of bean