protected void configure(ComponentService componentService, BuilderContext context) { Service service = componentService.getService(); if (service != null) { configure(componentService, service, null, context); configureBindings(componentService, service, context); } }
private ComponentService getPromotedService(ComponentService componentService) { Service service = componentService.getService(); if (service instanceof CompositeService) { return getPromotedService(((CompositeService)service).getPromotedService()); } else { return componentService; } }
protected void configure(ComponentService componentService, BuilderContext context) { Service service = componentService.getService(); if (service != null) { configure(componentService, service, null, context); configureBindings(componentService, service, context); } }
/** * Navigate the component/componentType inheritance chain to find the leaf contract * @param contract * @return */ private Contract getLeafContract(Contract contract) { Contract prev = null; Contract current = contract; while (current != null) { prev = current; if (current instanceof ComponentReference) { current = ((ComponentReference)current).getReference(); } else if (current instanceof CompositeReference) { current = ((CompositeReference)current).getPromotedReferences().get(0); } else if (current instanceof ComponentService) { current = ((ComponentService)current).getService(); } else if (current instanceof CompositeService) { current = ((CompositeService)current).getPromotedService(); } else { break; } if (current == null) { return prev; } } return current; }
/** * Navigate the component/componentType inheritence chain to find the leaf contract * @param contract * @return */ private Contract getLeafContract(Contract contract) { Contract prev = null; Contract current = contract; while (current != null) { prev = current; if (current instanceof ComponentReference) { current = ((ComponentReference)current).getReference(); } else if (current instanceof CompositeReference) { current = ((CompositeReference)current).getPromotedReferences().get(0); } else if (current instanceof ComponentService) { current = ((ComponentService)current).getService(); } else if (current instanceof CompositeService) { current = ((CompositeService)current).getPromotedService(); } else { break; } if (current == null) { return prev; } } return current; }
/** * Follow a service promotion chain down to the inner most (non composite) * component service. * * @param topCompositeService * @return */ public ComponentService getPromotedComponentService(CompositeService compositeService) { ComponentService componentService = compositeService.getPromotedService(); if (componentService != null) { Service service = componentService.getService(); if (componentService.getName() != null && service instanceof CompositeService) { // Continue to follow the service promotion chain return getPromotedComponentService((CompositeService)service); } else { // Found a non-composite service return componentService; } } else { // No promoted service return null; } }
/** * Follow a service promotion chain down to the inner most (non composite) * component service. * * @param topCompositeService * @return */ private ComponentService getPromotedComponentService(CompositeService compositeService) { ComponentService componentService = compositeService.getPromotedService(); if (componentService != null) { Service service = componentService.getService(); if (componentService.getName() != null && service instanceof CompositeService) { // Continue to follow the service promotion chain return getPromotedComponentService((CompositeService)service); } else { // Found a non-composite service return componentService; } } else { // No promoted service return null; } }
/** * Follow a service promotion chain down to the innermost (non-composite) component. * * @param compositeService * @return */ public Component getPromotedComponent(CompositeService compositeService) { ComponentService componentService = compositeService.getPromotedService(); if (componentService != null) { Service service = componentService.getService(); if (componentService.getName() != null && service instanceof CompositeService) { // Continue to follow the service promotion chain return getPromotedComponent((CompositeService)service); } else { // Found a non-composite service return compositeService.getPromotedComponent(); } } else { // No promoted service return null; } }
interfaceContract = endpoint.getService().getService().getInterfaceContract();
this.binding.setRequestMessageProcessorName(JMSBindingConstants.OBJECT_MP_CLASSNAME); List<Operation> opList = service.getService().getInterfaceContract().getInterface().getOperations(); interfaceContract = service.getService().getInterfaceContract();
public WireFormatJMSBytesServiceProvider(ExtensionPointRegistry registry, RuntimeEndpoint endpoint, JMSResourceFactory jmsResourceFactory) { super(); this.registry = registry; this.endpoint = endpoint; this.endpoint = endpoint; this.jmsResourceFactory = jmsResourceFactory; this.binding = (JMSBinding) endpoint.getBinding(); // configure the service based on this wire format // currently maintaining the message processor structure which // contains the details of jms message processing however override // any message processors specified in the SCDL in this case if (this.binding.getRequestWireFormat() instanceof WireFormatJMSBytes){ this.binding.setRequestMessageProcessorName(JMSBindingConstants.BYTES_MP_CLASSNAME); } if (this.binding.getResponseWireFormat() instanceof WireFormatJMSBytes){ this.binding.setResponseMessageProcessorName(JMSBindingConstants.BYTES_MP_CLASSNAME); } // just point to the reference interface contract so no // databinding transformation takes place interfaceContract = endpoint.getService().getService().getInterfaceContract(); }
Service componentTypeService = componentService.getService();
Service componentTypeService = componentService.getService();
Service componentTypeService = service.getService(); if (componentTypeService != null && componentTypeService.getInterfaceContract() != null) { interfaceContract = componentTypeService.getInterfaceContract();
Service componentTypeService = service.getService(); if (componentTypeService != null && componentTypeService.getInterfaceContract() != null) { interfaceContract = componentTypeService.getInterfaceContract();
Service componentTypeService = service.getService(); if (componentTypeService != null && componentTypeService.getInterfaceContract() != null) { interfaceContract = componentTypeService.getInterfaceContract();
Service componentTypeService = service.getService(); if (componentTypeService != null && componentTypeService.getInterfaceContract() != null) { interfaceContract = componentTypeService.getInterfaceContract();
Service componentTypeService = service.getService(); if (componentTypeService != null && componentTypeService.getInterfaceContract() != null) { interfaceContract = componentTypeService.getInterfaceContract();
if (componentService.getService() != null || componentService.isForCallback()) { continue;
if (componentService.getService() != null || componentService.isForCallback()) { continue;