Class InjectionMetadata.InjectedElement
java.lang.Object
org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
- Direct Known Subclasses:
CommonAnnotationBeanPostProcessor.LookupElement
- Enclosing class:
- InjectionMetadata
A single injected element.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
InjectedElement
(Member member, @Nullable PropertyDescriptor pd) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Check whether this injector's property needs to be skipped due to an explicit property value having been specified.protected final void
checkResourceType
(Class<?> resourceType) protected void
Clear property skipping for this element.boolean
final Member
getResourceToInject
(Object target, @Nullable String requestingBeanName) Either this orinject(java.lang.Object, java.lang.String, org.springframework.beans.PropertyValues)
needs to be overridden.protected final Class<?>
int
hashCode()
protected void
Either this orgetResourceToInject(java.lang.Object, java.lang.String)
needs to be overridden.protected boolean
Whether the property values should be injected.toString()
-
Field Details
-
member
-
isField
protected final boolean isField -
pd
-
skip
-
-
Constructor Details
-
InjectedElement
-
-
Method Details
-
getMember
-
getResourceType
-
checkResourceType
-
shouldInject
Whether the property values should be injected.- Parameters:
pvs
- property values to check- Returns:
- whether the property values should be injected
- Since:
- 6.0.10
-
inject
protected void inject(Object target, @Nullable String requestingBeanName, @Nullable PropertyValues pvs) throws Throwable Either this orgetResourceToInject(java.lang.Object, java.lang.String)
needs to be overridden.- Throws:
Throwable
-
checkPropertySkipping
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
Clear property skipping for this element.- Since:
- 3.2.13
-
getResourceToInject
Either this orinject(java.lang.Object, java.lang.String, org.springframework.beans.PropertyValues)
needs to be overridden. -
equals
-
hashCode
public int hashCode() -
toString
-