Not intended for direct use in applications.
Used by AutowiredAnnotationBeanPostProcessor,
org., and
org..
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | InjectionMetadata.InjectedElement
A single injected element. |
| Modifier and Type | Field and Description |
|---|---|
| private volatile Set | |
| public static final InjectionMetadata | EMPTY
An empty |
| private final Collection | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public | InjectionMetadata(Class<?>
the target class targetClass, Collection<InjectionMetadata.the associated elements to inject elementsCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public static InjectionMetadata | Returns: a newInjectionMetadata(Class, Collection) instancethe elements to inject (possibly empty) elements,the target class clazz)Return an |
| public Collection | |
| public Collection | Returns: the elements to injectthe property values to consider pvs)Return the |
| public void | |
| protected boolean | Returns: true indicating a refresh, false otherwisethe current target class clazz)Determine whether this metadata instance needs to be refreshed. |
| public static boolean | Returns: true indicating a refresh, false otherwisethe existing metadata instance metadata, Class<?> the current target class clazz)Check whether the given injection metadata needs to be refreshed. |
| checkedElements | back to summary |
|---|---|
| private volatile Set<InjectionMetadata. | |
| EMPTY | back to summary |
|---|---|
| public static final InjectionMetadata EMPTY An empty
| |
| injectedElements | back to summary |
|---|---|
| private final Collection<InjectionMetadata. | |
| targetClass | back to summary |
|---|---|
| private final Class<?> targetClass | |
| InjectionMetadata | back to summary |
|---|---|
| public InjectionMetadata(Class<?> targetClass, Collection<InjectionMetadata. Create a new Preferably use
| |
| checkConfigMembers | back to summary |
|---|---|
| public void checkConfigMembers(RootBeanDefinition beanDefinition) | |
| clear | back to summary |
|---|---|
| public void clear(PropertyValues pvs) Clear property skipping for the contained elements.
| |
| forElements | back to summary |
|---|---|
| public static InjectionMetadata forElements(Collection<InjectionMetadata. Return an
| |
| getInjectedElements | back to summary |
|---|---|
| public Collection Return the
| |
| getInjectedElements | back to summary |
|---|---|
| public Collection Return the
| |
| inject | back to summary |
|---|---|
| public void inject(Object target, String beanName, PropertyValues pvs) throws Throwable | |
| needsRefresh | back to summary |
|---|---|
| protected boolean needsRefresh(Class<?> clazz) Determine whether this metadata instance needs to be refreshed.
| |
| needsRefresh | back to summary |
|---|---|
| public static boolean needsRefresh(InjectionMetadata metadata, Class<?> clazz) Check whether the given injection metadata needs to be refreshed.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected final boolean | |
| protected final Member | |
| protected final PropertyDescriptor | |
| protected volatile Boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | checkPropertySkipping(PropertyValues pvs)
Check whether this injector's property needs to be skipped due to an explicit property value having been specified. |
| protected final void | |
| protected void | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public final Member | |
| protected Object | getResourceToInject(Object target, String requestingBeanName)
Either this or |
| protected final Class | |
| public int | |
| protected void | inject(Object target, String requestingBeanName, PropertyValues pvs)
Either this or |
| protected boolean | Returns: whether the property values should be injectedproperty values to check pvs)Whether the property values should be injected. |
| public String |
| isField | back to summary |
|---|---|
| protected final boolean isField | |
| member | back to summary |
|---|---|
| protected final Member member | |
| pd | back to summary |
|---|---|
| protected final PropertyDescriptor pd
| |
| skip | back to summary |
|---|---|
| protected volatile Boolean skip
| |
| InjectedElement | back to summary |
|---|---|
| protected InjectedElement(Member member, PropertyDescriptor pd) | |
| checkPropertySkipping | back to summary |
|---|---|
| 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. | |
| checkResourceType | back to summary |
|---|---|
| protected final void checkResourceType(Class<?> resourceType) | |
| clearPropertySkipping | back to summary |
|---|---|
| protected void clearPropertySkipping(PropertyValues pvs) Clear property skipping for this element.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getMember | back to summary |
|---|---|
| public final Member getMember() | |
| getResourceToInject | back to summary |
|---|---|
| protected Object getResourceToInject(Object target, String requestingBeanName) Either this or
| |
| getResourceType | back to summary |
|---|---|
| protected final Class | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| inject | back to summary |
|---|---|
| protected void inject(Object target, String requestingBeanName, PropertyValues pvs) throws Throwable Either this or | |
| shouldInject | back to summary |
|---|---|
| protected boolean shouldInject(PropertyValues pvs) Whether the property values should be injected.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |