类 InjectionMetadata.InjectedElement
- java.lang.Object
- org.springframework.beans.factory.annotation.InjectionMetadata.InjectedElement
public abstract static class InjectionMetadata.InjectedElement extends Object
A single injected element.
构造器概要
构造器 限定符 构造器 说明 protectedInjectedElement(Member member, PropertyDescriptor pd)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()
构造器详细资料
InjectedElement
protected InjectedElement(Member member, @Nullable PropertyDescriptor pd)
方法详细资料
getResourceType
protected final Class<?> getResourceType()
checkResourceType
protected final void checkResourceType(Class<?> resourceType)
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.- 抛出:
Throwable
checkPropertySkipping
protected boolean checkPropertySkipping(@Nullable 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(@Nullable PropertyValues pvs)
Clear property skipping for this element.- 从以下版本开始:
- 3.2.13
getResourceToInject
@Nullable protected Object getResourceToInject(Object target, @Nullable String requestingBeanName)
Either this orinject(java.lang.Object, java.lang.String, org.springframework.beans.PropertyValues)needs to be overridden.