类 AnnotationInjectedBeanPostProcessor<A extends java.lang.annotation.Annotation>

  • 类型参数:
    A - The type of customized annotation
    所有已实现的接口:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor, org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor, org.springframework.context.EnvironmentAware, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

    @Deprecated
    public abstract class AnnotationInjectedBeanPostProcessor<A extends java.lang.annotation.Annotation>
    extends org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
    implements org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor, org.springframework.core.PriorityOrdered, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.EnvironmentAware, org.springframework.beans.factory.DisposableBean
    已过时。
    Please use AnnotatedInjectionBeanPostProcessor as the substitution
    Abstract generic BeanPostProcessor implementation for customized annotation that annotated injected-object.
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    • 字段概要

      • 从接口继承的字段 org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • 方法概要

      所有方法 实例方法 抽象方法 具体方法 已过时的方法 
      修饰符和类型 方法 说明
      protected abstract java.lang.String buildInjectedObjectCacheKey​(A annotation, java.lang.Object bean, java.lang.String beanName, java.lang.Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
      已过时。
      Build a cache key for injected-object.
      void destroy()
      已过时。
       
      protected abstract java.lang.Object doGetInjectedBean​(A annotation, java.lang.Object bean, java.lang.String beanName, java.lang.Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
      已过时。
      Subclass must implement this method to get injected-object.
      java.lang.Class<A> getAnnotationType()
      已过时。
      Annotation type
      protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()
      已过时。
       
      protected java.lang.ClassLoader getClassLoader()
      已过时。
       
      protected org.springframework.core.env.Environment getEnvironment()
      已过时。
       
      protected java.util.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,​java.lang.Object> getInjectedFieldObjectsMap()
      已过时。
      Get Map in injected field.
      protected java.util.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,​java.lang.Object> getInjectedMethodObjectsMap()
      已过时。
      Get Map in injected method.
      protected java.lang.Object getInjectedObject​(A annotation, java.lang.Object bean, java.lang.String beanName, java.lang.Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
      已过时。
      Get injected-object from specified annotation and Bean Class
      protected java.util.Collection<java.lang.Object> getInjectedObjects()
      已过时。
      Gets all injected-objects.
      int getOrder()
      已过时。
       
      void postProcessMergedBeanDefinition​(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition, java.lang.Class<?> beanType, java.lang.String beanName)
      已过时。
       
      org.springframework.beans.PropertyValues postProcessPropertyValues​(org.springframework.beans.PropertyValues pvs, java.beans.PropertyDescriptor[] pds, java.lang.Object bean, java.lang.String beanName)
      已过时。
       
      void setBeanClassLoader​(java.lang.ClassLoader classLoader)
      已过时。
       
      void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
      已过时。
       
      void setEnvironment​(org.springframework.core.env.Environment environment)
      已过时。
       
      void setOrder​(int order)
      已过时。
       
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 org.springframework.beans.factory.config.BeanPostProcessor

        postProcessAfterInitialization, postProcessBeforeInitialization
      • 从接口继承的方法 org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor

        postProcessAfterInstantiation, postProcessBeforeInstantiation, postProcessProperties
      • 从接口继承的方法 org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor

        resetBeanDefinition
      • 从接口继承的方法 org.springframework.beans.factory.config.SmartInstantiationAwareBeanPostProcessor

        determineCandidateConstructors, getEarlyBeanReference, predictBeanType
    • 构造器详细资料

      • AnnotationInjectedBeanPostProcessor

        public AnnotationInjectedBeanPostProcessor()
        已过时。
    • 方法详细资料

      • getAnnotationType

        public final java.lang.Class<A> getAnnotationType()
        已过时。
        Annotation type
        返回:
        non-null
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
        已过时。
        指定者:
        setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAware
        抛出:
        org.springframework.beans.BeansException
      • postProcessPropertyValues

        public org.springframework.beans.PropertyValues postProcessPropertyValues​(org.springframework.beans.PropertyValues pvs,
                                                                                  java.beans.PropertyDescriptor[] pds,
                                                                                  java.lang.Object bean,
                                                                                  java.lang.String beanName)
                                                                           throws org.springframework.beans.factory.BeanCreationException
        已过时。
        指定者:
        postProcessPropertyValues 在接口中 org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessor
        抛出:
        org.springframework.beans.factory.BeanCreationException
      • postProcessMergedBeanDefinition

        public void postProcessMergedBeanDefinition​(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition,
                                                    java.lang.Class<?> beanType,
                                                    java.lang.String beanName)
        已过时。
        指定者:
        postProcessMergedBeanDefinition 在接口中 org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor
      • getOrder

        public int getOrder()
        已过时。
        指定者:
        getOrder 在接口中 org.springframework.core.Ordered
      • setOrder

        public void setOrder​(int order)
        已过时。
      • destroy

        public void destroy()
                     throws java.lang.Exception
        已过时。
        指定者:
        destroy 在接口中 org.springframework.beans.factory.DisposableBean
        抛出:
        java.lang.Exception
      • setBeanClassLoader

        public void setBeanClassLoader​(java.lang.ClassLoader classLoader)
        已过时。
        指定者:
        setBeanClassLoader 在接口中 org.springframework.beans.factory.BeanClassLoaderAware
      • setEnvironment

        public void setEnvironment​(org.springframework.core.env.Environment environment)
        已过时。
        指定者:
        setEnvironment 在接口中 org.springframework.context.EnvironmentAware
      • getEnvironment

        protected org.springframework.core.env.Environment getEnvironment()
        已过时。
      • getClassLoader

        protected java.lang.ClassLoader getClassLoader()
        已过时。
      • getBeanFactory

        protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()
        已过时。
      • getInjectedObjects

        protected java.util.Collection<java.lang.Object> getInjectedObjects()
        已过时。
        Gets all injected-objects.
        返回:
        non-null Collection
      • getInjectedObject

        protected java.lang.Object getInjectedObject​(A annotation,
                                                     java.lang.Object bean,
                                                     java.lang.String beanName,
                                                     java.lang.Class<?> injectedType,
                                                     org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
                                              throws java.lang.Exception
        已过时。
        Get injected-object from specified annotation and Bean Class
        参数:
        annotation - annotation
        bean - Current bean that will be injected
        beanName - Current bean name that will be injected
        injectedType - the type of injected-object
        injectedElement - InjectionMetadata.InjectedElement
        返回:
        An injected object
        抛出:
        java.lang.Exception - If getting is failed
      • doGetInjectedBean

        protected abstract java.lang.Object doGetInjectedBean​(A annotation,
                                                              java.lang.Object bean,
                                                              java.lang.String beanName,
                                                              java.lang.Class<?> injectedType,
                                                              org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
                                                       throws java.lang.Exception
        已过时。
        Subclass must implement this method to get injected-object. The context objects could help this method if necessary :
        参数:
        annotation - annotation
        bean - Current bean that will be injected
        beanName - Current bean name that will be injected
        injectedType - the type of injected-object
        injectedElement - InjectionMetadata.InjectedElement
        返回:
        The injected object
        抛出:
        java.lang.Exception - If resolving an injected object is failed.
      • buildInjectedObjectCacheKey

        protected abstract java.lang.String buildInjectedObjectCacheKey​(A annotation,
                                                                        java.lang.Object bean,
                                                                        java.lang.String beanName,
                                                                        java.lang.Class<?> injectedType,
                                                                        org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
        已过时。
        Build a cache key for injected-object. The context objects could help this method if necessary :
        参数:
        annotation - annotation
        bean - Current bean that will be injected
        beanName - Current bean name that will be injected
        injectedType - the type of injected-object
        injectedElement - InjectionMetadata.InjectedElement
        返回:
        Bean cache key
      • getInjectedFieldObjectsMap

        protected java.util.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,​java.lang.Object> getInjectedFieldObjectsMap()
        已过时。
        Get Map in injected field.
        返回:
        non-null ready-only Map
      • getInjectedMethodObjectsMap

        protected java.util.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,​java.lang.Object> getInjectedMethodObjectsMap()
        已过时。
        Get Map in injected method.
        返回:
        non-null Map