/** * Determines if the service invocation is asynchronous * @param source - the EPR involved in the invocation * @return - true if the invocation is async */ private boolean isAsyncInvocation(Invocable source) { if (!(source instanceof RuntimeEndpointReference)) return false; RuntimeEndpointReference epr = (RuntimeEndpointReference)source; // First check is to see if the EPR itself has the asyncInvocation intent marked for (Intent intent : epr.getRequiredIntents()) { if (intent.getName().equals(ASYNC_INVOKE)) return true; } // end for // Second check is to see if the target service has the asyncInvocation intent marked Endpoint ep = epr.getTargetEndpoint(); for (Intent intent : ep.getRequiredIntents()) { if (intent.getName().equals(ASYNC_INVOKE)) return true; } // end for return false; } // end isAsyncInvocation
endpoint.getRequiredIntents().addAll(component.getRequiredIntents()); endpoint.getPolicySets().addAll(component.getPolicySets());
endpoint.getRequiredIntents().addAll(component.getRequiredIntents()); endpoint.getPolicySets().addAll(component.getPolicySets());
public boolean build(EndpointReference endpointReference, BuilderContext context) { boolean ok = checkMutualExclusion(endpointReference, context); if(!ok) { return false; } Endpoint endpoint = endpointReference.getTargetEndpoint(); if (endpoint == null) { return true; } ok = checkMutualExclusion(endpointReference, endpoint, context); List<Intent> intentList1 = endpointReference.getRequiredIntents(); List<Intent> intentList2 = endpoint.getRequiredIntents(); return ok; }
public boolean build(EndpointReference endpointReference, BuilderContext context) { boolean ok = checkMutualExclusion(endpointReference, context); if(!ok) { return false; } Endpoint endpoint = endpointReference.getTargetEndpoint(); if (endpoint == null) { return true; } ok = checkMutualExclusion(endpointReference, endpoint, context); List<Intent> intentList1 = endpointReference.getRequiredIntents(); List<Intent> intentList2 = endpoint.getRequiredIntents(); return ok; }
for (Intent intent : endpoint.getRequiredIntents()){ Intent resolvedIntent = PolicyHelper.getIntent(systemDefinitions, intent.getName()); endpoint.getRequiredIntents().clear(); endpoint.getRequiredIntents().addAll(intents);
for (Intent epIntent : endpoint.getRequiredIntents()){ if (eprIntent.getExcludedIntents().contains(epIntent) || epIntent.getExcludedIntents().contains(eprIntent) || (endpoint.getRequiredIntents().size() == 0) && (noEndpointReferencePolicies) && (noEndpointPolicies)) { for (Intent eprIntent : eprMayProvideInterationIntents){ boolean match = false; for (Intent epIntent : endpoint.getRequiredIntents()){ if (epIntent.equals(eprIntent)){ match = true;
component.getRequiredIntents().addAll(endpoint.getRequiredIntents()); component.getPolicySets().clear(); component.getPolicySets().addAll(endpoint.getPolicySets());
component.getRequiredIntents().addAll(endpoint.getRequiredIntents()); component.getPolicySets().clear(); component.getPolicySets().addAll(endpoint.getPolicySets());
for ( Intent epIntent : ep.getRequiredIntents() ) { if ( Constants.TRANSACTED_ONE_WAY_INTENT.equals(epIntent.getName())) { error(context.getMonitor(), for ( ComponentService service : component.getServices() ) { for ( Endpoint ep : service.getEndpoints() ) { for ( Intent epIntent : ep.getRequiredIntents() ) { if ( Constants.PROPAGATES_TRANSACTION_INTENT.equals(epIntent.getName())) { error(context.getMonitor(),
for ( Intent epIntent : ep.getRequiredIntents() ) { if ( Constants.TRANSACTED_ONE_WAY_INTENT.equals(epIntent.getName())) { error(context.getMonitor(), for ( ComponentService service : component.getServices() ) { for ( Endpoint ep : service.getEndpoints() ) { for ( Intent epIntent : ep.getRequiredIntents() ) { if ( Constants.PROPAGATES_TRANSACTION_INTENT.equals(epIntent.getName())) { error(context.getMonitor(),