|
|
|
@ -26,9 +26,6 @@ import java.util.Collections;
@@ -26,9 +26,6 @@ import java.util.Collections;
|
|
|
|
|
import java.util.LinkedHashSet; |
|
|
|
|
import java.util.Set; |
|
|
|
|
|
|
|
|
|
import org.apache.commons.logging.Log; |
|
|
|
|
import org.apache.commons.logging.LogFactory; |
|
|
|
|
|
|
|
|
|
import org.springframework.beans.MutablePropertyValues; |
|
|
|
|
import org.springframework.beans.PropertyValues; |
|
|
|
|
import org.springframework.beans.factory.support.RootBeanDefinition; |
|
|
|
@ -69,8 +66,6 @@ public class InjectionMetadata {
@@ -69,8 +66,6 @@ public class InjectionMetadata {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final Log logger = LogFactory.getLog(InjectionMetadata.class); |
|
|
|
|
|
|
|
|
|
private final Class<?> targetClass; |
|
|
|
|
|
|
|
|
|
private final Collection<InjectedElement> injectedElements; |
|
|
|
@ -110,9 +105,6 @@ public class InjectionMetadata {
@@ -110,9 +105,6 @@ public class InjectionMetadata {
|
|
|
|
|
if (!beanDefinition.isExternallyManagedConfigMember(member)) { |
|
|
|
|
beanDefinition.registerExternallyManagedConfigMember(member); |
|
|
|
|
checkedElements.add(element); |
|
|
|
|
if (logger.isTraceEnabled()) { |
|
|
|
|
logger.trace("Registered injected element on class [" + this.targetClass.getName() + "]: " + element); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.checkedElements = checkedElements; |
|
|
|
@ -124,9 +116,6 @@ public class InjectionMetadata {
@@ -124,9 +116,6 @@ public class InjectionMetadata {
|
|
|
|
|
(checkedElements != null ? checkedElements : this.injectedElements); |
|
|
|
|
if (!elementsToIterate.isEmpty()) { |
|
|
|
|
for (InjectedElement element : elementsToIterate) { |
|
|
|
|
if (logger.isTraceEnabled()) { |
|
|
|
|
logger.trace("Processing injected element of bean '" + beanName + "': " + element); |
|
|
|
|
} |
|
|
|
|
element.inject(target, beanName, pvs); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -157,7 +146,8 @@ public class InjectionMetadata {
@@ -157,7 +146,8 @@ public class InjectionMetadata {
|
|
|
|
|
* @since 5.2 |
|
|
|
|
*/ |
|
|
|
|
public static InjectionMetadata forElements(Collection<InjectedElement> elements, Class<?> clazz) { |
|
|
|
|
return (elements.isEmpty() ? InjectionMetadata.EMPTY : new InjectionMetadata(clazz, elements)); |
|
|
|
|
return (elements.isEmpty() ? new InjectionMetadata(clazz, Collections.emptyList()) : |
|
|
|
|
new InjectionMetadata(clazz, elements)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|