接口的使用
org.springframework.beans.factory.config.BeanPostProcessor
使用BeanPostProcessor的程序包 程序包 说明 org.springframework.aop.aspectj.annotation Classes enabling AspectJ 5 @Annotated classes to be used in Spring AOP.org.springframework.aop.aspectj.autoproxy Base classes enabling auto-proxying based on AspectJ.org.springframework.aop.framework Package containing Spring's basic AOP infrastructure, compliant with the AOP Alliance interfaces.org.springframework.aop.framework.adapter SPI package allowing Spring AOP framework to handle arbitrary advice types.org.springframework.aop.framework.autoproxy Bean post-processors for use in ApplicationContexts to simplify AOP usage by automatically creating AOP proxies without the need to use a ProxyFactoryBean.org.springframework.beans.factory.annotation Support package for annotation-driven bean configuration.org.springframework.beans.factory.config SPI interfaces and configuration-related convenience classes for bean factories.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factory
package.org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.context.weaving Load-time weaving support for a Spring application context, building on Spring'sLoadTimeWeaver
abstraction.org.springframework.dao.annotation Annotation support for DAOs.org.springframework.jms.annotation Annotations and support classes for declarative JMS listener endpoints.org.springframework.orm.jpa.support Classes supporting theorg.springframework.orm.jpa
package.org.springframework.scheduling.annotation Java 5 annotation for asynchronous method execution.org.springframework.scripting.support Support classes for Spring's scripting package.org.springframework.validation.beanvalidation Support classes for integrating a JSR-303 Bean Validation provider (such as Hibernate Validator) into a Spring ApplicationContext and in particular with Spring's data binding and validation APIs.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.org.springframework.aop.aspectj.annotation中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.aop.aspectj.annotation中的类 修饰符和类型 类 说明 class
AnnotationAwareAspectJAutoProxyCreator
AspectJAwareAdvisorAutoProxyCreator
subclass that processes all AspectJ annotation aspects in the current application context, as well as Spring Advisors.org.springframework.aop.aspectj.autoproxy中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.aop.aspectj.autoproxy中的类 修饰符和类型 类 说明 class
AspectJAwareAdvisorAutoProxyCreator
AbstractAdvisorAutoProxyCreator
subclass that exposes AspectJ's invocation context and understands AspectJ's rules for advice precedence when multiple pieces of advice come from the same aspect.org.springframework.aop.framework中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.aop.framework中的类 修饰符和类型 类 说明 class
AbstractAdvisingBeanPostProcessor
Base class forBeanPostProcessor
implementations that apply a Spring AOPAdvisor
to specific beans.org.springframework.aop.framework.adapter中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.aop.framework.adapter中的类 修饰符和类型 类 说明 class
AdvisorAdapterRegistrationManager
BeanPostProcessor that registersAdvisorAdapter
beans in the BeanFactory with anAdvisorAdapterRegistry
(by default theGlobalAdvisorAdapterRegistry
).org.springframework.aop.framework.autoproxy中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.aop.framework.autoproxy中的类 修饰符和类型 类 说明 class
AbstractAdvisorAutoProxyCreator
Generic auto proxy creator that builds AOP proxies for specific beans based on detected Advisors for each bean.class
AbstractAutoProxyCreator
BeanPostProcessor
implementation that wraps each eligible bean with an AOP proxy, delegating to specified interceptors before invoking the bean itself.class
AbstractBeanFactoryAwareAdvisingPostProcessor
Extension ofAbstractAutoProxyCreator
which implementsBeanFactoryAware
, adds exposure of the original target class for each proxied bean (AutoProxyUtils.ORIGINAL_TARGET_CLASS_ATTRIBUTE
), and participates in an externally enforced target-class mode for any given bean (AutoProxyUtils.PRESERVE_TARGET_CLASS_ATTRIBUTE
).class
BeanNameAutoProxyCreator
Auto proxy creator that identifies beans to proxy via a list of names.class
DefaultAdvisorAutoProxyCreator
BeanPostProcessor
implementation that creates AOP proxies based on all candidateAdvisor
s in the currentBeanFactory
.class
InfrastructureAdvisorAutoProxyCreator
Auto-proxy creator that considers infrastructure Advisor beans only, ignoring any application-defined Advisors.org.springframework.beans.factory.annotation中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.beans.factory.annotation中的类 修饰符和类型 类 说明 class
AutowiredAnnotationBeanPostProcessor
BeanPostProcessor
implementation that autowires annotated fields, setter methods, and arbitrary config methods.class
InitDestroyAnnotationBeanPostProcessor
BeanPostProcessor
implementation that invokes annotated init and destroy methods.class
RequiredAnnotationBeanPostProcessor
已过时。as of 5.1, in favor of using constructor injection for required settings (or a customInitializingBean
implementation)org.springframework.beans.factory.config中BeanPostProcessor的使用
org.springframework.beans.factory.config中BeanPostProcessor的子接口 修饰符和类型 接口 说明 interface
DestructionAwareBeanPostProcessor
Subinterface ofBeanPostProcessor
that adds a before-destruction callback.interface
InstantiationAwareBeanPostProcessor
Subinterface ofBeanPostProcessor
that adds a before-instantiation callback, and a callback after instantiation but before explicit properties are set or autowiring occurs.interface
SmartInstantiationAwareBeanPostProcessor
Extension of theInstantiationAwareBeanPostProcessor
interface, adding a callback for predicting the eventual type of a processed bean.实现BeanPostProcessor的org.springframework.beans.factory.config中的类 修饰符和类型 类 说明 class
InstantiationAwareBeanPostProcessorAdapter
Adapter that implements all methods onSmartInstantiationAwareBeanPostProcessor
as no-ops, which will not change normal processing of each bean instantiated by the container.参数类型为BeanPostProcessor的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 void
ConfigurableBeanFactory. addBeanPostProcessor(BeanPostProcessor beanPostProcessor)
Add a new BeanPostProcessor that will get applied to beans created by this factory.org.springframework.beans.factory.support中BeanPostProcessor的使用
org.springframework.beans.factory.support中BeanPostProcessor的子接口 修饰符和类型 接口 说明 interface
MergedBeanDefinitionPostProcessor
Post-processor callback interface for merged bean definitions at runtime.返回变量类型为BeanPostProcessor的类型的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 List<BeanPostProcessor>
AbstractBeanFactory. getBeanPostProcessors()
Return the list of BeanPostProcessors that will get applied to beans created with this factory.参数类型为BeanPostProcessor的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 void
AbstractBeanFactory. addBeanPostProcessor(BeanPostProcessor beanPostProcessor)
org.springframework.context.annotation中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.context.annotation中的类 修饰符和类型 类 说明 class
CommonAnnotationBeanPostProcessor
BeanPostProcessor
implementation that supports common Java annotations out of the box, in particular the JSR-250 annotations in thejavax.annotation
package.org.springframework.context.weaving中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.context.weaving中的类 修饰符和类型 类 说明 class
LoadTimeWeaverAwareProcessor
BeanPostProcessor
implementation that passes the context's defaultLoadTimeWeaver
to beans that implement theLoadTimeWeaverAware
interface.org.springframework.dao.annotation中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.dao.annotation中的类 修饰符和类型 类 说明 class
PersistenceExceptionTranslationPostProcessor
Bean post-processor that automatically applies persistence exception translation to any bean marked with Spring's @Repository
annotation, adding a correspondingPersistenceExceptionTranslationAdvisor
to the exposed proxy (either an existing AOP proxy or a newly generated proxy that implements all of the target's interfaces).org.springframework.jms.annotation中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.jms.annotation中的类 修饰符和类型 类 说明 class
JmsListenerAnnotationBeanPostProcessor
Bean post-processor that registers methods annotated withJmsListener
to be invoked by a JMS message listener container created under the cover by aJmsListenerContainerFactory
according to the attributes of the annotation.org.springframework.orm.jpa.support中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.orm.jpa.support中的类 修饰符和类型 类 说明 class
PersistenceAnnotationBeanPostProcessor
BeanPostProcessor that processesPersistenceUnit
andPersistenceContext
annotations, for injection of the corresponding JPA resourcesEntityManagerFactory
andEntityManager
.org.springframework.scheduling.annotation中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.scheduling.annotation中的类 修饰符和类型 类 说明 class
AsyncAnnotationBeanPostProcessor
Bean post-processor that automatically applies asynchronous invocation behavior to any bean that carries theAsync
annotation at class or method-level by adding a correspondingAsyncAnnotationAdvisor
to the exposed proxy (either an existing AOP proxy or a newly generated proxy that implements all of the target's interfaces).class
ScheduledAnnotationBeanPostProcessor
Bean post-processor that registers methods annotated with @Scheduled
to be invoked by aTaskScheduler
according to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation.org.springframework.scripting.support中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.scripting.support中的类 修饰符和类型 类 说明 class
ScriptFactoryPostProcessor
BeanPostProcessor
that handlesScriptFactory
definitions, replacing each factory with the actual scripted Java object generated by it.org.springframework.validation.beanvalidation中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.validation.beanvalidation中的类 修饰符和类型 类 说明 class
BeanValidationPostProcessor
SimpleBeanPostProcessor
that checks JSR-303 constraint annotations in Spring-managed beans, throwing an initialization exception in case of constraint violations right before calling the bean's init method (if any).class
MethodValidationPostProcessor
A convenientBeanPostProcessor
implementation that delegates to a JSR-303 provider for performing method-level validation on annotated methods.org.springframework.web.context.support中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.web.context.support中的类 修饰符和类型 类 说明 class
ServletContextAwareProcessor
BeanPostProcessor
implementation that passes the ServletContext to beans that implement theServletContextAware
interface.org.springframework.web.servlet.handler中BeanPostProcessor的使用
实现BeanPostProcessor的org.springframework.web.servlet.handler中的类 修饰符和类型 类 说明 class
SimpleServletPostProcessor
BeanPostProcessor
that applies initialization and destruction callbacks to beans that implement theServlet
interface.