类 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 useAnnotatedInjectionBeanPostProcessor
as the substitutionAbstract genericBeanPostProcessor
implementation for customized annotation that annotated injected-object.- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 class
AnnotationInjectedBeanPostProcessor.AnnotatedFieldElement
已过时。
-
构造器概要
构造器 构造器 说明 AnnotationInjectedBeanPostProcessor()
已过时。
-
方法概要
所有方法 实例方法 抽象方法 具体方法 已过时的方法 修饰符和类型 方法 说明 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 typeprotected 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()
已过时。GetMap
in injected field.protected java.util.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,java.lang.Object>
getInjectedMethodObjectsMap()
已过时。GetMap
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 specifiedannotation
and Bean Classprotected 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
-
-
-
-
方法详细资料
-
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 specifiedannotation
and Bean Class- 参数:
annotation
-annotation
bean
- 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
-annotation
bean
- 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
-annotation
bean
- 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()
已过时。GetMap
in injected field.- 返回:
- non-null ready-only
Map
-
getInjectedMethodObjectsMap
protected java.util.Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,java.lang.Object> getInjectedMethodObjectsMap()
已过时。GetMap
in injected method.- 返回:
- non-null
Map
-
-