Uses of Interface
org.springframework.beans.factory.FactoryBean
Package
Description
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
SPI interfaces and configuration-related convenience classes for bean factories.
Support package for the Java
ServiceLoader
facility.Classes supporting the
org.springframework.beans.factory
package.-
Uses of FactoryBean in org.springframework.beans.factory
-
Uses of FactoryBean in org.springframework.beans.factory.config
Modifier and TypeClassDescriptionclass
Simple template superclass forFactoryBean
implementations that creates a singleton or a prototype object, depending on a flag.class
FactoryBean
which retrieves a static or non-static field value.class
Simple factory for shared List instances.class
Simple factory for shared Map instances.class
FactoryBean
which returns a value which is the result of a static or instance method invocation.class
AFactoryBean
implementation that returns a value which is anObjectFactory
that in turn returns a bean sourced from aBeanFactory
.class
Allows for making a properties file from a classpath location available as Properties instance in a bean factory.class
FactoryBean
that evaluates a property path on a given target object.class
AFactoryBean
implementation that returns a value which is a JSR-330Provider
that in turn returns a bean sourced from aBeanFactory
.class
AFactoryBean
implementation that takes an interface which must have one or more methods with the signaturesMyType xxx()
orMyType xxx(MyIdType id)
(typically,MyService getService()
orMyService getService(String id)
) and creates a dynamic proxy which implements that interface, delegating to an underlyingBeanFactory
.class
Simple factory for shared Set instances.class
Factory for aMap
that reads from a YAML source, preserving the YAML-declared value types and their structure.class
Factory forProperties
that reads from a YAML source, exposing a flat structure of String property values. -
Uses of FactoryBean in org.springframework.beans.factory.serviceloader
Modifier and TypeClassDescriptionclass
Abstract base class for FactoryBeans operating on the JDK 1.6ServiceLoader
facility.class
FactoryBean
that exposes the 'primary' service for the configured service class, obtained through the JDK 1.6ServiceLoader
facility.class
FactoryBean
that exposes all services for the configured service class, represented as a List of service objects, obtained through the JDK 1.6ServiceLoader
facility.class
FactoryBean
that exposes the JDK 1.6ServiceLoader
for the configured service class. -
Uses of FactoryBean in org.springframework.beans.factory.support
Modifier and TypeMethodDescriptionprotected FactoryBean<?>
FactoryBeanRegistrySupport.getFactoryBean
(String beanName, Object beanInstance) Get a FactoryBean for the given bean if possible.Modifier and TypeMethodDescriptionprotected Object
FactoryBeanRegistrySupport.getObjectFromFactoryBean
(FactoryBean<?> factory, String beanName, boolean shouldPostProcess) Obtain an object to expose from the given FactoryBean.protected Class<?>
FactoryBeanRegistrySupport.getTypeForFactoryBean
(FactoryBean<?> factoryBean) Determine the type for the given FactoryBean.