private void raiseNoService(LogicalReference reference, Target target, LogicalCompositeComponent parent, InstantiationContext context) { String componentName = target.getComponent(); URI referenceUri = reference.getUri(); String msg = "The reference " + referenceUri + " is wired to component " + componentName + " but the component has no services"; NoServiceOnComponent error = new NoServiceOnComponent(msg, parent); context.addError(error); }
private void raiseAmbiguousService(LogicalReference reference, Target target, InstantiationContext context) { String componentName = target.getComponent(); URI referenceUri = reference.getUri(); String msg = "More than one service available on component: " + componentName + ". The wire from the reference " + referenceUri + " must explicitly specify a target service."; AmbiguousService error = new AmbiguousService(msg, reference); context.addError(error); }
private void raiseNoService(LogicalReference reference, Target target, LogicalCompositeComponent parent, InstantiationContext context) { String componentName = target.getComponent(); URI referenceUri = reference.getUri(); String msg = "The reference " + referenceUri + " is wired to component " + componentName + " but the component has no services"; NoServiceOnComponent error = new NoServiceOnComponent(msg, parent); context.addError(error); }
private void raiseAmbiguousService(LogicalReference reference, Target target, InstantiationContext context) { String componentName = target.getComponent(); URI referenceUri = reference.getUri(); String msg = "More than one service available on component: " + componentName + ". The wire from the reference " + referenceUri + " must explicitly specify a target service."; AmbiguousService error = new AmbiguousService(msg, reference); context.addError(error); }
private void raiseServiceNotFound(LogicalReference reference, Target target, InstantiationContext context) { URI referenceUri = reference.getUri(); String componentName = target.getComponent(); String serviceName = target.getBindable(); String msg = "The service " + serviceName + " wired from the reference " + referenceUri + " is not found on component " + componentName; ServiceNotFound error = new ServiceNotFound(msg, reference); context.addError(error); }
private void raiseServiceNotFound(LogicalReference reference, Target target, InstantiationContext context) { URI referenceUri = reference.getUri(); String componentName = target.getComponent(); String serviceName = target.getBindable(); String msg = "The service " + serviceName + " wired from the reference " + referenceUri + " is not found on component " + componentName; ServiceNotFound error = new ServiceNotFound(msg, reference); context.addError(error); }
String base = parent.getUri().toString(); URI componentUri = URI.create(base + "/" + target.getComponent()); String referenceName = target.getBindable();
String base = parent.getUri().toString(); URI componentUri = URI.create(base + "/" + target.getComponent()); String referenceName = target.getBindable();
URI targetComponentUri = URI.create(parent.getUri().toString() + "/" + target.getComponent()); LogicalComponent<?> targetComponent = parent.getComponent(targetComponentUri); if (targetComponent == null) {
URI targetComponentUri = URI.create(parent.getUri().toString() + "/" + target.getComponent()); LogicalComponent<?> targetComponent = parent.getComponent(targetComponentUri); if (targetComponent == null) {