@Override public List<Service> getServices() { if (componentType != null){ return componentType.getServices(); } else { return null; } }
@Override public List<Service> getServices() { if (componentType != null){ return componentType.getServices(); } else { return null; } }
@Override public List<Service> getServices() { return componentType.getServices(); }
public void resolve(ComponentType componentType, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { // Resolve component type services and references resolveContracts(componentType.getServices(), resolver, context); resolveContracts(componentType.getReferences(), resolver, context); }
List<Service> theServices = componentType.getServices();
public void resolve(ComponentType componentType, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { // Resolve component type services and references resolveContracts(componentType.getServices(), resolver, context); resolveContracts(componentType.getReferences(), resolver, context); }
javaInterface.setName(interfaceName); interfaceContract.setInterface(javaInterface); componentType.getServices().add(service);
public void resolve(WebImplementation implementation, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { // Resolve the component type String uri = implementation.getURI(); if (uri != null) { ComponentType componentType = assemblyFactory.createComponentType(); componentType.setURI("web.componentType"); componentType = resolver.resolveModel(ComponentType.class, componentType, context); if (!componentType.isUnresolved()) { // Initialize the implementation's services, references and properties implementation.getServices().addAll(componentType.getServices()); implementation.getReferences().addAll(componentType.getReferences()); implementation.getProperties().addAll(componentType.getProperties()); } } implementation.setUnresolved(false); }
componentType.getServices().addAll(javaImplementation.getServices()); componentType.getReferences().addAll(javaImplementation.getReferences()); componentType.getProperties().addAll(javaImplementation.getProperties());
serviceMap.put(svc.getName(), svc); for (Service service : componentType.getServices()) { serviceMap.put(service.getName(), service);
implementation.getServices().addAll(componentType.getServices()); implementation.getReferences().addAll(componentType.getReferences()); implementation.getProperties().addAll(componentType.getProperties());
implementation.getServices().addAll(componentType.getServices()); implementation.getReferences().addAll(componentType.getReferences()); implementation.getProperties().addAll(componentType.getProperties());
/** * Connect the services in the component type to the component services that * they promote * * @param componentType * @param component */ private void calculateServices(ComponentType componentType, Map<String, Component> components, Map<String, ComponentService> componentServices, BuilderContext context) { Monitor monitor = context.getMonitor(); // Connect this component type's services to the // services from child components which it promotes connectPromotedServices(componentType, components, componentServices, monitor); // look at each component type service in turn and // calculate its configuration based on OASIS rules for (Service service : componentType.getServices()) { CompositeService compositeService = (CompositeService)service; ComponentService promotedComponentService = compositeService.getPromotedService(); // promote interface contracts calculatePromotedServiceInterfaceContract(compositeService, promotedComponentService, context); // promote bindings calculatePromotedBindings(compositeService, promotedComponentService); componentBuilder.policyBuilder.configure(compositeService, context); } }
/** * Connect the services in the component type to the component services that * they promote * * @param componentType * @param component */ private void calculateServices(ComponentType componentType, Map<String, Component> components, Map<String, ComponentService> componentServices, BuilderContext context) { Monitor monitor = context.getMonitor(); // Connect this component type's services to the // services from child components which it promotes connectPromotedServices(componentType, components, componentServices, monitor); // look at each component type service in turn and // calculate its configuration based on OASIS rules for (Service service : componentType.getServices()) { CompositeService compositeService = (CompositeService)service; ComponentService promotedComponentService = compositeService.getPromotedService(); // promote interface contracts calculatePromotedServiceInterfaceContract(compositeService, promotedComponentService, context); // promote bindings calculatePromotedBindings(compositeService, promotedComponentService); componentBuilder.policyBuilder.configure(compositeService, context); } }
Monitor monitor) { for (Service service : componentType.getServices()) {
componentType.getReferences().add(generateReference(scaName, pLink.getMyRolePortType(), pLink.getPartnerRolePortType(), theProcess.getInterfaces(), monitor)); } else { componentType.getServices().add(generateService(scaName, pLink.getMyRolePortType(), pLink.getPartnerRolePortType(), theProcess.getInterfaces(), monitor));
Monitor monitor) { for (Service service : componentType.getServices()) {
implementation.getProperties().addAll(componentType.getProperties()); implementation.getReferences().addAll(componentType.getReferences()); implementation.getServices().addAll(componentType.getServices());
componentType.getReferences().add(generateReference(scaName, pLink.getMyRolePortType(), pLink.getPartnerRolePortType(), theProcess.getInterfaces(), monitor)); } else { componentType.getServices().add(generateService(scaName, pLink.getMyRolePortType(), pLink.getPartnerRolePortType(), theProcess.getInterfaces(), monitor));
private void mergeFromComponentType(OSGiImplementation impl, ComponentType componentType, ModelResolver resolver, ProcessorContext context) { List<Service> services = componentType.getServices(); for (Service service : services) { Interface interfaze = service.getInterfaceContract().getInterface();