Uses of Interface
org.springframework.beans.factory.BeanFactory
Packages that use 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
Subinterfaces of BeanFactory in org.springframework.beans.factoryModifier and TypeInterfaceDescriptioninterfaceSub-interface implemented by bean factories that can be part of a hierarchy.interfaceExtension of theBeanFactoryinterface 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.Methods in org.springframework.beans.factory that return BeanFactoryModifier and TypeMethodDescriptionHierarchicalBeanFactory.getParentBeanFactory()Return the parent bean factory, ornullif there is none.Methods in org.springframework.beans.factory with parameters of type BeanFactoryModifier and TypeMethodDescriptionvoidBeanFactoryAware.setBeanFactory(BeanFactory beanFactory) Callback that supplies the owning factory to a bean instance. -
Uses of BeanFactory in org.springframework.beans.factory.annotation
Methods in org.springframework.beans.factory.annotation with parameters of type BeanFactoryModifier and TypeMethodDescriptionstatic booleanBeanFactoryAnnotationUtils.isQualifierMatch(Predicate<String> qualifier, String beanName, BeanFactory beanFactory) Check whether the named bean declares a qualifier of the given name.static <T> TBeanFactoryAnnotationUtils.qualifiedBeanOfType(BeanFactory beanFactory, Class<T> beanType, String qualifier) Obtain a bean of typeTfrom the givenBeanFactorydeclaring a qualifier (for example, via<qualifier>or@Qualifier) matching the given qualifier, or having a bean name matching the given qualifier.voidAutowiredAnnotationBeanPostProcessor.setBeanFactory(BeanFactory beanFactory) -
Uses of BeanFactory in org.springframework.beans.factory.config
Subinterfaces of BeanFactory in org.springframework.beans.factory.configModifier and TypeInterfaceDescriptioninterfaceExtension of theBeanFactoryinterface to be implemented by bean factories that are capable of autowiring, provided that they want to expose this functionality for existing bean instances.interfaceConfiguration interface to be implemented by most bean factories.interfaceConfiguration interface to be implemented by most listable bean factories.Methods in org.springframework.beans.factory.config that return BeanFactoryModifier and TypeMethodDescriptionprotected BeanFactoryAbstractFactoryBean.getBeanFactory()Return the BeanFactory that this bean runs in.Methods in org.springframework.beans.factory.config with parameters of type BeanFactoryModifier 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.voidAbstractFactoryBean.setBeanFactory(BeanFactory beanFactory) voidMethodInvokingBean.setBeanFactory(BeanFactory beanFactory) voidPlaceholderConfigurerSupport.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.voidPropertyPathFactoryBean.setBeanFactory(BeanFactory beanFactory) voidServiceLocatorFactoryBean.setBeanFactory(BeanFactory beanFactory) voidConfigurableBeanFactory.setParentBeanFactory(BeanFactory parentBeanFactory) Set the parent of this bean factory. -
Uses of BeanFactory in org.springframework.beans.factory.support
Classes in org.springframework.beans.factory.support that implement BeanFactoryModifier and TypeClassDescriptionclassAbstract bean factory superclass that implements default bean creation, with the full capabilities specified by theRootBeanDefinitionclass.classAbstract base class forBeanFactoryimplementations, providing the full capabilities of theConfigurableBeanFactorySPI.classSpring's default implementation of theConfigurableListableBeanFactoryandBeanDefinitionRegistryinterfaces: a full-fledged bean factory based on bean definition metadata, extensible through post-processors.classStaticBeanFactoryimplementation which allows one to register existing singleton instances programmatically.Methods in org.springframework.beans.factory.support that return BeanFactoryModifier and TypeMethodDescriptionprotected final BeanFactoryGenericTypeAwareAutowireCandidateResolver.getBeanFactory()AbstractBeanFactory.getParentBeanFactory()Methods in org.springframework.beans.factory.support with parameters of type BeanFactoryModifier 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 ObjectCglibSubclassingInstantiationStrategy.instantiateWithMethodInjection(RootBeanDefinition bd, String beanName, BeanFactory owner) protected ObjectCglibSubclassingInstantiationStrategy.instantiateWithMethodInjection(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args) protected ObjectSimpleInstantiationStrategy.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 ObjectSimpleInstantiationStrategy.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.voidGenericTypeAwareAutowireCandidateResolver.setBeanFactory(BeanFactory beanFactory) voidAbstractBeanFactory.setParentBeanFactory(BeanFactory parentBeanFactory) Constructors in org.springframework.beans.factory.support with parameters of type BeanFactoryModifierConstructorDescriptionAbstractAutowireCapableBeanFactory(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
Methods in org.springframework.beans.factory.wiring with parameters of type BeanFactoryModifier and TypeMethodDescriptionvoidBeanConfigurerSupport.setBeanFactory(BeanFactory beanFactory) Set theBeanFactoryin which this aspect must configure beans.