/** * Performs heuristic introspection and validation of services. * * @param type the component type * @param context the context for reporting errors */ private void postProcessServices(SpringComponentType type, IntrospectionContext context) { for (SpringService service : type.getSpringServices().values()) { String target = service.getTarget(); BeanDefinition definition = type.getBeansById().get(target); if (definition == null) { definition = type.getBeansByName().get(target); } if (definition == null) { ServiceTargetNotFound failure = new ServiceTargetNotFound(service.getName(), target, type); context.addError(failure); continue; } if (service.getServiceContract() == null) { introspectContract(service, definition, type, context); } } }
/** * Performs heuristic introspection and validation of services. * * @param type the component type * @param context the context for reporting errors */ private void postProcessServices(SpringComponentType type, IntrospectionContext context) { for (SpringService service : type.getSpringServices().values()) { String target = service.getTarget(); BeanDefinition definition = type.getBeansById().get(target); if (definition == null) { definition = type.getBeansByName().get(target); } if (definition == null) { ServiceTargetNotFound failure = new ServiceTargetNotFound(service.getName(), target, type); context.addError(failure); continue; } if (service.getServiceContract() == null) { introspectContract(service, definition, type, context); } } }
/** * Performs heuristic introspection and validation of services. * * @param type the component type * @param context the context for reporting errors */ private void postProcessServices(SpringComponentType type, IntrospectionContext context) { for (SpringService service : type.getSpringServices().values()) { String target = service.getTarget(); BeanDefinition definition = type.getBeansById().get(target); if (definition == null) { definition = type.getBeansByName().get(target); } if (definition == null) { ServiceTargetNotFound failure = new ServiceTargetNotFound(service.getName(), target, type); context.addError(failure); continue; } if (service.getServiceContract() == null) { introspectContract(service, definition, type, context); } } }