Class InjectionMetadata.InjectedElement
- java.lang.Object
- org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
- Direct Known Subclasses:
CommonAnnotationBeanPostProcessor.LookupElement
- Enclosing class:
- InjectionMetadata
public abstract static class InjectionMetadata.InjectedElement extends Object
A single injected element.
Constructor Summary
Constructors Modifier Constructor Description protectedInjectedElement(Member member, PropertyDescriptor pd)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckPropertySkipping(PropertyValues pvs)Check whether this injector's property needs to be skipped due to an explicit property value having been specified.protected voidcheckResourceType(Class<?> resourceType)protected voidclearPropertySkipping(PropertyValues pvs)Clear property skipping for this element.booleanequals(Object other)MembergetMember()protected ObjectgetResourceToInject(Object target, String requestingBeanName)Either this orinject(java.lang.Object, java.lang.String, org.springframework.beans.PropertyValues)needs to be overridden.protected Class<?>getResourceType()inthashCode()protected voidinject(Object target, String requestingBeanName, PropertyValues pvs)Either this orgetResourceToInject(java.lang.Object, java.lang.String)needs to be overridden.StringtoString()
Constructor Detail
InjectedElement
protected InjectedElement(Member member, PropertyDescriptor pd)
Method Detail
getResourceType
protected final Class<?> getResourceType()
checkResourceType
protected final void checkResourceType(Class<?> resourceType)
inject
protected void inject(Object target, String requestingBeanName, PropertyValues pvs) throws Throwable
Either this orgetResourceToInject(java.lang.Object, java.lang.String)needs to be overridden.- Throws:
Throwable
checkPropertySkipping
protected boolean checkPropertySkipping(PropertyValues pvs)
Check whether this injector's property needs to be skipped due to an explicit property value having been specified. Also marks the affected property as processed for other processors to ignore it.
clearPropertySkipping
protected void clearPropertySkipping(PropertyValues pvs)
Clear property skipping for this element.- Since:
- 3.2.13
getResourceToInject
protected Object getResourceToInject(Object target, String requestingBeanName)
Either this orinject(java.lang.Object, java.lang.String, org.springframework.beans.PropertyValues)needs to be overridden.