Class InjectionMetadata
- java.lang.Object
- org.springframework.beans.factory.annotation.InjectionMetadata
public class InjectionMetadata extends Object
Internal class for managing injection metadata. Not intended for direct use in applications.Used by
AutowiredAnnotationBeanPostProcessor
,CommonAnnotationBeanPostProcessor
andPersistenceAnnotationBeanPostProcessor
.- Since:
- 2.5
- Author:
- Juergen Hoeller
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InjectionMetadata.InjectedElement
A single injected element.
Constructor Summary
Constructors Constructor Description InjectionMetadata(Class<?> targetClass, Collection<InjectionMetadata.InjectedElement> elements)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkConfigMembers(RootBeanDefinition beanDefinition)
void
clear(PropertyValues pvs)
void
inject(Object target, String beanName, PropertyValues pvs)
static boolean
needsRefresh(InjectionMetadata metadata, Class<?> clazz)
Constructor Detail
InjectionMetadata
public InjectionMetadata(Class<?> targetClass, Collection<InjectionMetadata.InjectedElement> elements)
Method Detail
checkConfigMembers
public void checkConfigMembers(RootBeanDefinition beanDefinition)
inject
public void inject(Object target, String beanName, PropertyValues pvs) throws Throwable
- Throws:
Throwable
clear
public void clear(PropertyValues pvs)
- Since:
- 3.2.13
needsRefresh
public static boolean needsRefresh(InjectionMetadata metadata, Class<?> clazz)