类 AnnotationInjectedBeanPostProcessor<A extends java.lang.annotation.Annotation>
- java.lang.Object
-
- org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter
-
- io.microsphere.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor<A>
-
- 类型参数:
A- The type ofcustomized 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 useAnnotatedInjectionBeanPostProcessoras the substitutionAbstract genericBeanPostProcessorimplementation for customized annotation that annotated injected-object.- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 classAnnotationInjectedBeanPostProcessor.AnnotatedFieldElement已过时。
-
构造器概要
构造器 构造器 说明 AnnotationInjectedBeanPostProcessor()已过时。
-
方法概要
所有方法 实例方法 抽象方法 具体方法 已过时的方法 修饰符和类型 方法 说明 protected abstract java.lang.StringbuildInjectedObjectCacheKey(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.voiddestroy()已过时。protected abstract java.lang.ObjectdoGetInjectedBean(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 typeprotected org.springframework.beans.factory.config.ConfigurableListableBeanFactorygetBeanFactory()已过时。protected java.lang.ClassLoadergetClassLoader()已过时。protected org.springframework.core.env.EnvironmentgetEnvironment()已过时。protected java.util.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,java.lang.Object>getInjectedFieldObjectsMap()已过时。GetMapin injected field.protected java.util.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,java.lang.Object>getInjectedMethodObjectsMap()已过时。GetMapin injected method.protected java.lang.ObjectgetInjectedObject(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 specifiedannotationand Bean Classprotected java.util.Collection<java.lang.Object>getInjectedObjects()已过时。Gets all injected-objects.intgetOrder()已过时。voidpostProcessMergedBeanDefinition(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition, java.lang.Class<?> beanType, java.lang.String beanName)已过时。org.springframework.beans.PropertyValuespostProcessPropertyValues(org.springframework.beans.PropertyValues pvs, java.beans.PropertyDescriptor[] pds, java.lang.Object bean, java.lang.String beanName)已过时。voidsetBeanClassLoader(java.lang.ClassLoader classLoader)已过时。voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)已过时。voidsetEnvironment(org.springframework.core.env.Environment environment)已过时。voidsetOrder(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
-
-
-
-
方法详细资料
-
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 specifiedannotationand Bean Class- 参数:
annotation-annotationbean- Current bean that will be injectedbeanName- Current bean name that will be injectedinjectedType- the type of injected-objectinjectedElement-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-annotationbean- Current bean that will be injectedbeanName- Current bean name that will be injectedinjectedType- the type of injected-objectinjectedElement-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-annotationbean- Current bean that will be injectedbeanName- Current bean name that will be injectedinjectedType- the type of injected-objectinjectedElement-InjectionMetadata.InjectedElement- 返回:
- Bean cache key
-
getInjectedFieldObjectsMap
protected java.util.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,java.lang.Object> getInjectedFieldObjectsMap()
已过时。GetMapin injected field.- 返回:
- non-null ready-only
Map
-
getInjectedMethodObjectsMap
protected java.util.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,java.lang.Object> getInjectedMethodObjectsMap()
已过时。GetMapin injected method.- 返回:
- non-null
Map
-
-