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,CommonAnnotationBeanPostProcessorandPersistenceAnnotationBeanPostProcessor.- Since:
- 2.5
- Author:
- Juergen Hoeller
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInjectionMetadata.InjectedElementA 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 voidcheckConfigMembers(RootBeanDefinition beanDefinition)voidclear(PropertyValues pvs)voidinject(Object target, String beanName, PropertyValues pvs)static booleanneedsRefresh(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)