A - The type of customized annotationAbstractAnnotationBeanPostProcessor as the substitution@Deprecated public abstract class AnnotationInjectedBeanPostProcessor<A extends 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
BeanPostProcessor implementation for customized annotation that annotated injected-object.| 限定符和类型 | 类和说明 |
|---|---|
class |
AnnotationInjectedBeanPostProcessor.AnnotatedFieldElement
已过时。
|
| 构造器和说明 |
|---|
AnnotationInjectedBeanPostProcessor()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract String |
buildInjectedObjectCacheKey(A annotation,
Object bean,
String beanName,
Class<?> injectedType,
org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
已过时。
Build a cache key for injected-object.
|
void |
destroy()
已过时。
|
protected abstract Object |
doGetInjectedBean(A annotation,
Object bean,
String beanName,
Class<?> injectedType,
org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
已过时。
Subclass must implement this method to get injected-object.
|
Class<A> |
getAnnotationType()
已过时。
Annotation type
|
protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory |
getBeanFactory()
已过时。
|
protected ClassLoader |
getClassLoader()
已过时。
|
protected org.springframework.core.env.Environment |
getEnvironment()
已过时。
|
protected Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,Object> |
getInjectedFieldObjectsMap()
已过时。
Get
Map in injected field. |
protected Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,Object> |
getInjectedMethodObjectsMap()
已过时。
Get
Map in injected method. |
protected Object |
getInjectedObject(A annotation,
Object bean,
String beanName,
Class<?> injectedType,
org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
已过时。
Get injected-object from specified
annotation and Bean Class |
protected Collection<Object> |
getInjectedObjects()
已过时。
Gets all injected-objects.
|
int |
getOrder()
已过时。
|
void |
postProcessMergedBeanDefinition(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition,
Class<?> beanType,
String beanName)
已过时。
|
org.springframework.beans.PropertyValues |
postProcessPropertyValues(org.springframework.beans.PropertyValues pvs,
PropertyDescriptor[] pds,
Object bean,
String beanName)
已过时。
|
void |
setBeanClassLoader(ClassLoader classLoader)
已过时。
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
已过时。
|
void |
setEnvironment(org.springframework.core.env.Environment environment)
已过时。
|
void |
setOrder(int order)
已过时。
|
determineCandidateConstructors, getEarlyBeanReference, postProcessAfterInitialization, postProcessAfterInstantiation, postProcessBeforeInitialization, postProcessBeforeInstantiation, predictBeanTypepublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory 在接口中 org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic org.springframework.beans.PropertyValues postProcessPropertyValues(org.springframework.beans.PropertyValues pvs,
PropertyDescriptor[] pds,
Object bean,
String beanName)
throws org.springframework.beans.factory.BeanCreationException
postProcessPropertyValues 在接口中 org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorpostProcessPropertyValues 在类中 org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapterorg.springframework.beans.factory.BeanCreationExceptionpublic void postProcessMergedBeanDefinition(org.springframework.beans.factory.support.RootBeanDefinition beanDefinition,
Class<?> beanType,
String beanName)
postProcessMergedBeanDefinition 在接口中 org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessorpublic int getOrder()
getOrder 在接口中 org.springframework.core.Orderedpublic void setOrder(int order)
public void destroy()
throws Exception
destroy 在接口中 org.springframework.beans.factory.DisposableBeanExceptionpublic void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader 在接口中 org.springframework.beans.factory.BeanClassLoaderAwarepublic void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment 在接口中 org.springframework.context.EnvironmentAwareprotected org.springframework.core.env.Environment getEnvironment()
protected ClassLoader getClassLoader()
protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()
protected Collection<Object> getInjectedObjects()
Collectionprotected Object getInjectedObject(A annotation, Object bean, String beanName, Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement) throws Exception
annotation and Bean Classannotation - annotationbean - Current bean that will be injectedbeanName - Current bean name that will be injectedinjectedType - the type of injected-objectinjectedElement - InjectionMetadata.InjectedElementException - If getting is failedprotected abstract Object doGetInjectedBean(A annotation, Object bean, String beanName, Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement) throws Exception
annotation - annotationbean - Current bean that will be injectedbeanName - Current bean name that will be injectedinjectedType - the type of injected-objectinjectedElement - InjectionMetadata.InjectedElementException - If resolving an injected object is failed.protected abstract String buildInjectedObjectCacheKey(A annotation, Object bean, String beanName, Class<?> injectedType, org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement injectedElement)
annotation - annotationbean - Current bean that will be injectedbeanName - Current bean name that will be injectedinjectedType - the type of injected-objectinjectedElement - InjectionMetadata.InjectedElementprotected Map<org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement,Object> getInjectedFieldObjectsMap()
Map in injected field.MapCopyright © 2019. All rights reserved.