程序包 org.springframework.beans.factory.config
SPI interfaces and configuration-related convenience classes for bean factories.
接口概要 接口 说明 AutowireCapableBeanFactory 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.BeanDefinition A BeanDefinition describes a bean instance, which has property values, constructor argument values, and further information supplied by concrete implementations.BeanExpressionResolver Strategy interface for resolving a value through evaluating it as an expression, if applicable.BeanFactoryPostProcessor Allows for custom modification of an application context's bean definitions, adapting the bean property values of the context's underlying bean factory.BeanPostProcessor Factory hook that allows for custom modification of new bean instances, e.g. checking for marker interfaces or wrapping them with proxies.BeanReference Interface that exposes a reference to a bean name in an abstract fashion.ConfigurableBeanFactory Configuration interface to be implemented by most bean factories.ConfigurableListableBeanFactory Configuration interface to be implemented by most listable bean factories.DestructionAwareBeanPostProcessor Subinterface ofBeanPostProcessor
that adds a before-destruction callback.InstantiationAwareBeanPostProcessor Subinterface ofBeanPostProcessor
that adds a before-instantiation callback, and a callback after instantiation but before explicit properties are set or autowiring occurs.Scope Strategy interface used by aConfigurableBeanFactory
, representing a target scope to hold bean instances in.SingletonBeanRegistry Interface that defines a registry for shared bean instances.SmartInstantiationAwareBeanPostProcessor Extension of theInstantiationAwareBeanPostProcessor
interface, adding a callback for predicting the eventual type of a processed bean.YamlProcessor.DocumentMatcher Strategy interface used to test if properties match.YamlProcessor.MatchCallback Callback interface used to process the YAML parsing results.类概要 类 说明 AbstractFactoryBean<T> Simple template superclass forFactoryBean
implementations that creates a singleton or a prototype object, depending on a flag.BeanDefinitionHolder Holder for a BeanDefinition with name and aliases.BeanDefinitionVisitor Visitor class for traversingBeanDefinition
objects, in particular the property values and constructor argument values contained in them, resolving bean metadata values.BeanExpressionContext Context object for evaluating an expression within a bean definition.ConstructorArgumentValues Holder for constructor argument values, typically as part of a bean definition.ConstructorArgumentValues.ValueHolder Holder for a constructor argument value, with an optional type attribute indicating the target type of the actual constructor argument.CustomEditorConfigurer BeanFactoryPostProcessor
implementation that allows for convenient registration of customproperty editors
.CustomScopeConfigurer SimpleBeanFactoryPostProcessor
implementation that registers customScope(s)
with the containingConfigurableBeanFactory
.DependencyDescriptor Descriptor for a specific dependency that is about to be injected.DeprecatedBeanWarner Bean factory post processor that logs a warning for@Deprecated
beans.EmbeddedValueResolver StringValueResolver
adapter for resolving placeholders and expressions against aConfigurableBeanFactory
.FieldRetrievingFactoryBean FactoryBean
which retrieves a static or non-static field value.InstantiationAwareBeanPostProcessorAdapter Adapter that implements all methods onSmartInstantiationAwareBeanPostProcessor
as no-ops, which will not change normal processing of each bean instantiated by the container.ListFactoryBean Simple factory for shared List instances.MapFactoryBean Simple factory for shared Map instances.MethodInvokingBean Simple method invoker bean: just invoking a target method, not expecting a result to expose to the container (in contrast toMethodInvokingFactoryBean
).MethodInvokingFactoryBean FactoryBean
which returns a value which is the result of a static or instance method invocation.NamedBeanHolder<T> A simple holder for a given bean name plus bean instance.ObjectFactoryCreatingFactoryBean AFactoryBean
implementation that returns a value which is anObjectFactory
that in turn returns a bean sourced from aBeanFactory
.PlaceholderConfigurerSupport Abstract base class for property resource configurers that resolve placeholders in bean definition property values.PreferencesPlaceholderConfigurer Subclass of PropertyPlaceholderConfigurer that supports JDK 1.4's Preferences API (java.util.prefs
).PropertiesFactoryBean Allows for making a properties file from a classpath location available as Properties instance in a bean factory.PropertyOverrideConfigurer Property resource configurer that overrides bean property values in an application context definition.PropertyPathFactoryBean FactoryBean
that evaluates a property path on a given target object.PropertyPlaceholderConfigurer PlaceholderConfigurerSupport
subclass that resolves ${...} placeholders againstlocal
properties
and/or system properties and environment variables.PropertyResourceConfigurer Allows for configuration of individual bean property values from a property resource, i.e. a properties file.ProviderCreatingFactoryBean AFactoryBean
implementation that returns a value which is a JSR-330Provider
that in turn returns a bean sourced from aBeanFactory
.RuntimeBeanNameReference Immutable placeholder class used for a property value object when it's a reference to another bean name in the factory, to be resolved at runtime.RuntimeBeanReference Immutable placeholder class used for a property value object when it's a reference to another bean in the factory, to be resolved at runtime.ServiceLocatorFactoryBean 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
.SetFactoryBean Simple factory for shared Set instances.TypedStringValue Holder for a typed String value.YamlMapFactoryBean Factory for aMap
that reads from a YAML source, preserving the YAML-declared value types and their structure.YamlProcessor Base class for YAML factories.YamlProcessor.StrictMapAppenderConstructor A specializedConstructor
that checks for duplicate keys.YamlPropertiesFactoryBean Factory forProperties
that reads from a YAML source, exposing a flat structure of String property values.枚举概要 枚举 说明 YamlProcessor.MatchStatus Status returned fromYamlProcessor.DocumentMatcher.matches(java.util.Properties)
YamlProcessor.ResolutionMethod Method to use for resolving resources.