@Override public List<Reference> getReferences() { if (componentType != null){ return componentType.getReferences(); } else { return null; } }
@Override public List<Reference> getReferences() { return componentType.getReferences(); }
@Override public List<Reference> getReferences() { if (componentType != null){ return componentType.getReferences(); } else { return null; } }
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<Reference> theReferences = componentType.getReferences(); for ( Reference reference : theReferences ) { String referenceName = reference.getName();
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); }
/** * Use preProcess to validate and map the references and properties dynamically */ public void build(Component component) { for (Reference reference : component.getReferences()) { if (unresolvedBeanRef.containsKey(reference.getName())) { Reference ref = unresolvedBeanRef.get(reference.getName()); componentType.getReferences().add(createReference(reference, ref.getInterfaceContract())); unresolvedBeanRef.remove(reference.getName()); } } for (Property property : component.getProperties()) { if (unresolvedBeanRef.containsKey(property.getName())) { componentType.getProperties().add(createProperty(property)); this.setPropertyClass(property.getName(), property.getClass()); unresolvedBeanRef.remove(property.getName()); } } }
for (Reference reference : componentType.getReferences()) { CompositeReference compositeReference = (CompositeReference)reference; List<ComponentReference> promotedReferences = compositeReference.getPromotedReferences();
for (Reference reference : componentType.getReferences()) { CompositeReference compositeReference = (CompositeReference)reference; List<ComponentReference> promotedReferences = compositeReference.getPromotedReferences();
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.getReferences().addAll(javaImplementation.getReferences()); componentType.getProperties().addAll(javaImplementation.getProperties());
implementation.getReferences().addAll(componentType.getReferences()); implementation.getProperties().addAll(componentType.getProperties());
implementation.getReferences().addAll(componentType.getReferences()); implementation.getProperties().addAll(componentType.getProperties());
String scaName = pLink.getSCAName(); if (pLink.querySCAType().equals("reference")) { 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));
if (!componentType.isUnresolved()) { implementation.getProperties().addAll(componentType.getProperties()); implementation.getReferences().addAll(componentType.getReferences()); implementation.getServices().addAll(componentType.getServices());
String scaName = pLink.getSCAName(); if (pLink.querySCAType().equals("reference")) { 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));
for (Reference reference : componentType.getReferences()) { CompositeReference compositeReference = (CompositeReference)reference; List<ComponentReference> promotedReferences = compositeReference.getPromotedReferences();
for (Reference reference : componentType.getReferences()) { CompositeReference compositeReference = (CompositeReference)reference; List<ComponentReference> promotedReferences = compositeReference.getPromotedReferences();
ct.getReferences().add(reference);
List<Reference> references = componentType.getReferences(); for (Reference reference : references) { Interface interfaze = reference.getInterfaceContract().getInterface();