public class BeanNotOfRequiredTypeException extends BeansException
| Constructor and Description | 
|---|
| BeanNotOfRequiredTypeException(String beanName,
                              Class<?> requiredType,
                              Class<?> actualType)Create a new BeanNotOfRequiredTypeException. | 
| Modifier and Type | Method and Description | 
|---|---|
| Class<?> | getActualType()Return the actual type of the instance found. | 
| String | getBeanName()Return the name of the instance that was of the wrong type. | 
| Class<?> | getRequiredType()Return the expected type for the bean. | 
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BeanNotOfRequiredTypeException(String beanName, Class<?> requiredType, Class<?> actualType)
beanName - the name of the bean requestedrequiredType - the required typeactualType - the actual type returned, which did not match
 the expected type