new SpringXMLComponentTypeLoader(assemblyFactory, javaFactory, policyFactory);
try {
// Load the Spring Implementation information from its application context file...
springLoader.load(springImplementation);
} catch (ContributionReadException e) {
throw new ContributionResolveException(e);
}
ComponentType ct = springImplementation.getComponentType();
if (ct.isUnresolved()) {
// If the introspection fails to resolve, try to find a side file...
ComponentType componentType = resolver.resolveModel(ComponentType.class, ct);
if (componentType.isUnresolved()) {
throw new ContributionResolveException(
"SpringArtifactProcessor: unable to resolve componentType for Spring component");
}
springImplementation.setComponentType(componentType);
springImplementation.setUnresolved(false);