Top Description Constructors Methods
org.springframework.beans.factory

public Class BeanIsNotAFactoryException

extends BeanNotOfRequiredTypeException
Class Inheritance
Annotations
@SuppressWarnings:serial

Exception thrown when a bean is not a factory, but a user tries to get at the factory for the given bean name. Whether a bean is a factory is determined by whether it implements the FactoryBean interface.
Author
Rod Johnson
Since
10.03.2003
See Also
org.springframework.beans.factory.FactoryBean

Constructor Summary

AccessConstructor and Description
public
BeanIsNotAFactoryException(String
the name of the bean requested
name
,
Class<?>
the actual type returned, which did not match the expected type
actualType
)

Create a new BeanIsNotAFactoryException.

Method Summary

Inherited from org.springframework.beans.factory.BeanNotOfRequiredTypeException:
getActualTypegetBeanNamegetRequiredType

Constructor Detail

BeanIsNotAFactoryExceptionback to summary
public BeanIsNotAFactoryException(String name, Class<?> actualType)

Create a new BeanIsNotAFactoryException.

Parameters
name:String

the name of the bean requested

actualType:Class<?>

the actual type returned, which did not match the expected type