public PolicyResult resolveRemotePolicies(LogicalWire wire) throws PolicyResolutionException { LogicalReference reference = wire.getSource(); LogicalService service = wire.getTarget(); LogicalComponent source = reference.getParent(); LogicalComponent target = service.getLeafComponent(); LogicalBinding<?> serviceBinding = wire.getTargetBinding(); List<LogicalOperation> sourceOperations = reference.getOperations(); return resolvePolicies(sourceOperations, serviceBinding, serviceBinding, source, target); }
for (LogicalOperation operation : reference.getOperations()) { if (operation.getDefinition().getName().equals(operationName)) { operations.add(operation);
public PolicyResult resolveLocalPolicies(LogicalWire wire) throws PolicyResolutionException { LogicalReference reference = wire.getSource(); // use the leaf service to optimize data paths - e.g. a promoted service may use a different service contract and databinding than the leaf LogicalService service = wire.getTarget().getLeafService(); LogicalComponent source = reference.getParent(); LogicalComponent target = service.getLeafComponent(); LogicalBinding<LocalBindingDefinition> sourceBinding = new LogicalBinding<>(LocalBindingDefinition.INSTANCE, reference); LogicalBinding<LocalBindingDefinition> targetBinding = new LogicalBinding<>(LocalBindingDefinition.INSTANCE, service); return resolvePolicies(reference.getOperations(), sourceBinding, targetBinding, source, target); }
List<LogicalOperation> sourceOperations = reference.getOperations(); operations = operationGenerator.generateOperations(sourceOperations, false, policyResult); } else { List<LogicalOperation> sourceOperations = reference.getOperations(); List<LogicalOperation> targetOperations = service.getOperations(); operations = operationGenerator.generateOperations(sourceOperations, targetOperations, false, policyResult);
List<LogicalOperation> sourceOperations = reference.getOperations(); PhysicalTargetDefinition targetDefinition = targetGenerator.generateServiceBindingTarget(serviceBinding, serviceContract, sourceOperations, targetPolicy);
ServiceContract contract = reference.getServiceContract(); ServiceContract callbackContract = contract.getCallbackContract(); List<LogicalOperation> operations = reference.getOperations();
ServiceContract contract = reference.getServiceContract(); ServiceContract callbackContract = contract.getCallbackContract(); List<LogicalOperation> operations = reference.getOperations();
ServiceContract contract = reference.getServiceContract(); ServiceContract callbackContract = contract.getCallbackContract(); List<LogicalOperation> operations = reference.getOperations();
List<LogicalOperation> sourceOperations = reference.getOperations(); List<LogicalOperation> targetOperations = service.getOperations(); Set<PhysicalOperation> operations = operationGenerator.generateOperations(sourceOperations, targetOperations, false);
List<LogicalOperation> sourceOperations = reference.getOperations(); List<LogicalOperation> targetOperations = service.getOperations(); Set<PhysicalOperation> operations = operationGenerator.generateOperations(sourceOperations, targetOperations, false);