Return an instance, which may be shared or independent, of the specified bean.
Return an instance, which may be shared or independent, of the specified bean.
type the bean must match. Can be an interface or superclass of the actual class.
the name of the bean to retrieve
an instance of the bean
BeanNotOfRequiredTypeException
if the bean is not of the required type
BeansException
if the bean could not be created
NoSuchBeanDefinitionException
if there is no such bean definition
Returns the bean instance that uniquely matches the given object type, if any.
Returns the bean instance that uniquely matches the given object type, if any.
type the bean must match; can be an interface or superclass.
an instance of the single bean matching the required type
NoSuchBeanDefinitionException
if no bean of the given type was found
NoUniqueBeanDefinitionException
if more than one bean of the given type was found
Optionally returns an instance, which may be shared or independent, of the specified bean.
Optionally returns an instance, which may be shared or independent, of the specified bean.
type the bean must match. Can be an interface or superclass of the actual class.
the name of the bean to retrieve
an option value containing the an instance of the bean; or None
if no such
bean was found
BeansException
if the bean could not be created
Optionally returns the bean instance that uniquely matches the given object type, if any.
Optionally returns the bean instance that uniquely matches the given object type, if any.
type the bean must match; can be an interface or superclass.
an option value containing the instance of the single bean matching the required type;
or None
if no such bean was found
Rich wrapper for org.springframework.beans.factory.BeanFactory, offering Scala-specific methods.