Uses of Interface
org.springframework.beans.factory.BeanFactory
Package
Description
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
Support package for annotation-driven bean configuration.
SPI interfaces and configuration-related convenience classes for bean factories.
Classes supporting the
org.springframework.beans.factory
package.Mechanism to determine bean wiring metadata from a bean instance.
-
Uses of BeanFactory in org.springframework.beans.factory
Modifier and TypeInterfaceDescriptioninterface
Sub-interface implemented by bean factories that can be part of a hierarchy.interface
Extension of theBeanFactory
interface to be implemented by bean factories that can enumerate all their bean instances, rather than attempting bean lookup by name one by one as requested by clients.Modifier and TypeMethodDescriptionHierarchicalBeanFactory.getParentBeanFactory()
Return the parent bean factory, ornull
if there is none.Modifier and TypeMethodDescriptionvoid
BeanFactoryAware.setBeanFactory
(BeanFactory beanFactory) Callback that supplies the owning factory to a bean instance. -
Uses of BeanFactory in org.springframework.beans.factory.annotation
Modifier and TypeMethodDescriptionstatic boolean
BeanFactoryAnnotationUtils.isQualifierMatch
(Predicate<String> qualifier, String beanName, BeanFactory beanFactory) Check whether the named bean declares a qualifier of the given name.static <T> T
BeanFactoryAnnotationUtils.qualifiedBeanOfType
(BeanFactory beanFactory, Class<T> beanType, String qualifier) Obtain a bean of typeT
from the givenBeanFactory
declaring a qualifier (e.g.void
AutowiredAnnotationBeanPostProcessor.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.beans.factory.config
Modifier and TypeInterfaceDescriptioninterface
Extension of theBeanFactory
interface to be implemented by bean factories that are capable of autowiring, provided that they want to expose this functionality for existing bean instances.interface
Configuration interface to be implemented by most bean factories.interface
Configuration interface to be implemented by most listable bean factories.Modifier and TypeMethodDescriptionprotected BeanFactory
AbstractFactoryBean.getBeanFactory()
Return the BeanFactory that this bean runs in.Modifier and TypeMethodDescriptionDependencyDescriptor.resolveCandidate
(String beanName, Class<?> requiredType, BeanFactory beanFactory) Resolve the specified bean name, as a candidate result of the matching algorithm for this dependency, to a bean instance from the given factory.DependencyDescriptor.resolveShortcut
(BeanFactory beanFactory) Resolve a shortcut for this dependency against the given factory, for example taking some pre-resolved information into account.void
AbstractFactoryBean.setBeanFactory
(BeanFactory beanFactory) void
MethodInvokingBean.setBeanFactory
(BeanFactory beanFactory) void
PlaceholderConfigurerSupport.setBeanFactory
(BeanFactory beanFactory) Only necessary to check that we're not parsing our own bean definition, to avoid failing on unresolvable placeholders in properties file locations.void
PropertyPathFactoryBean.setBeanFactory
(BeanFactory beanFactory) void
ServiceLocatorFactoryBean.setBeanFactory
(BeanFactory beanFactory) void
ConfigurableBeanFactory.setParentBeanFactory
(BeanFactory parentBeanFactory) Set the parent of this bean factory. -
Uses of BeanFactory in org.springframework.beans.factory.support
Modifier and TypeClassDescriptionclass
Abstract bean factory superclass that implements default bean creation, with the full capabilities specified by theRootBeanDefinition
class.class
Abstract base class forBeanFactory
implementations, providing the full capabilities of theConfigurableBeanFactory
SPI.class
Spring's default implementation of theConfigurableListableBeanFactory
andBeanDefinitionRegistry
interfaces: a full-fledged bean factory based on bean definition metadata, extensible through post-processors.class
StaticBeanFactory
implementation which allows one to register existing singleton instances programmatically.Modifier and TypeMethodDescriptionprotected final BeanFactory
GenericTypeAwareAutowireCandidateResolver.getBeanFactory()
AbstractBeanFactory.getParentBeanFactory()
Modifier and TypeMethodDescriptionClass<?>
CglibSubclassingInstantiationStrategy.getActualBeanClass
(RootBeanDefinition bd, String beanName, BeanFactory owner) default Class<?>
InstantiationStrategy.getActualBeanClass
(RootBeanDefinition bd, String beanName, BeanFactory owner) Determine the actual class for the given bean definition, as instantiated at runtime.InstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner) Return an instance of the bean with the given name in this factory.InstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object... args) Return an instance of the bean with the given name in this factory, creating it via the given factory method.InstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args) Return an instance of the bean with the given name in this factory, creating it via the given constructor.SimpleInstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner) SimpleInstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object... args) SimpleInstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args) protected Object
CglibSubclassingInstantiationStrategy.instantiateWithMethodInjection
(RootBeanDefinition bd, String beanName, BeanFactory owner) protected Object
CglibSubclassingInstantiationStrategy.instantiateWithMethodInjection
(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args) protected Object
SimpleInstantiationStrategy.instantiateWithMethodInjection
(RootBeanDefinition bd, String beanName, BeanFactory owner) Subclasses can override this method, which is implemented to throw UnsupportedOperationException, if they can instantiate an object with the Method Injection specified in the given RootBeanDefinition.protected Object
SimpleInstantiationStrategy.instantiateWithMethodInjection
(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args) Subclasses can override this method, which is implemented to throw UnsupportedOperationException, if they can instantiate an object with the Method Injection specified in the given RootBeanDefinition.void
GenericTypeAwareAutowireCandidateResolver.setBeanFactory
(BeanFactory beanFactory) void
AbstractBeanFactory.setParentBeanFactory
(BeanFactory parentBeanFactory) ModifierConstructorDescriptionAbstractAutowireCapableBeanFactory
(BeanFactory parentBeanFactory) Create a new AbstractAutowireCapableBeanFactory with the given parent.AbstractBeanFactory
(BeanFactory parentBeanFactory) Create a new AbstractBeanFactory with the given parent.DefaultListableBeanFactory
(BeanFactory parentBeanFactory) Create a new DefaultListableBeanFactory with the given parent. -
Uses of BeanFactory in org.springframework.beans.factory.wiring
Modifier and TypeMethodDescriptionvoid
BeanConfigurerSupport.setBeanFactory
(BeanFactory beanFactory) Set theBeanFactory
in which this aspect must configure beans.