Tabnine Logo
ComponentReference.getTargets
Code IndexAdd Tabnine to your IDE (free)

How to use
getTargets
method
in
org.apache.tuscany.sca.assembly.ComponentReference

Best Java code snippets using org.apache.tuscany.sca.assembly.ComponentReference.getTargets (Showing top 20 results out of 315)

origin: org.apache.tuscany.sca/tuscany-builder

/**
 * Helper method which obtains a list of targets for a reference
 * @param reference - Component reference
 * @return - the list of targets, which will be empty if there are no targets
 */
private List<ComponentService> getReferenceTargets(ComponentReference reference) {
  List<ComponentService> theTargets = reference.getTargets();
  if (theTargets.isEmpty()) {
    // Component reference list of targets is empty, try the implementation reference
    if (reference.getReference() != null) {
      theTargets = reference.getReference().getTargets();
    } // end if
  } // end if
  return theTargets;
} // end method getReferenceTargets
origin: org.apache.tuscany.sca/tuscany-base-runtime

/**
 * Helper method which obtains a list of targets for a reference
 * @param reference - Component reference
 * @return - the list of targets, which will be empty if there are no targets
 */
private List<ComponentService> getReferenceTargets(ComponentReference reference) {
  List<ComponentService> theTargets = reference.getTargets();
  if (theTargets.isEmpty()) {
    // Component reference list of targets is empty, try the implementation reference
    if (reference.getReference() != null) {
      theTargets = reference.getReference().getTargets();
    } // end if
  } // end if
  return theTargets;
} // end method getReferenceTargets
origin: org.apache.tuscany.sca/tuscany-base-runtime

/**
 * Helper method which obtains a list of targets for a reference
 * @param reference - Component reference
 * @return - the list of targets, which will be empty if there are no targets
 */
private List<ComponentService> getReferenceTargets(ComponentReference reference) {
  List<ComponentService> theTargets = reference.getTargets();
  if (theTargets.isEmpty()) {
    // Component reference list of targets is empty, try the implementation reference
    if (reference.getReference() != null) {
      theTargets = reference.getReference().getTargets();
    } // end if
  } // end if
  return theTargets;
} // end method getReferenceTargets 
origin: org.apache.tuscany.sca/tuscany-builder

/**
 * Helper method which obtains a list of targets for a reference
 * @param reference - Component reference
 * @return - the list of targets, which will be empty if there are no targets
 */
private List<ComponentService> getReferenceTargets(ComponentReference reference) {
  List<ComponentService> theTargets = reference.getTargets();
  if (theTargets.isEmpty()) {
    // Component reference list of targets is empty, try the implementation reference
    if (reference.getReference() != null) {
      theTargets = reference.getReference().getTargets();
    } // end if
  } // end if
  return theTargets;
} // end method getReferenceTargets 
origin: org.apache.tuscany.sca/tuscany-base-runtime

private Composite wrap(EndpointReference endpointReference) {
  try {
    Composite composite = assemblyFactory.createComposite();
    composite.setName(ENDPOINT_REFERENCE_QNAME);
    composite.setLocal(false);
    Component component = (Component)endpointReference.getComponent().clone();
    composite.getComponents().add(component);
    component.getReferences().clear();
    component.getServices().clear();
    ComponentReference reference = (ComponentReference)endpointReference.getReference().clone();
    component.getReferences().add(reference);
    reference.getBindings().clear();
    Binding binding = (Binding)endpointReference.getBinding().clone();
    reference.getBindings().add(binding);
    //reference.setInterfaceContract(endpointReference.getInterfaceContract());
    if (endpointReference.getStatus() != EndpointReference.Status.RESOLVED_BINDING){
      ComponentService service = assemblyFactory.createComponentService();
      service.setName(endpointReference.getTargetEndpoint().getURI());
      reference.getTargets().clear();
      reference.getTargets().add(service);
    }
    return composite;
  } catch (CloneNotSupportedException e) {
    return null;
  }
}
origin: org.apache.tuscany.sca/tuscany-assembly-xml

private Composite wrap(EndpointReference endpointReference) {
  try {
    Composite composite = assemblyFactory.createComposite();
    composite.setName(ENDPOINT_REFERENCE_QNAME);
    composite.setLocal(false);
    Component component = (Component)endpointReference.getComponent().clone();
    composite.getComponents().add(component);
    component.getReferences().clear();
    component.getServices().clear();
    ComponentReference reference = (ComponentReference)endpointReference.getReference().clone();
    component.getReferences().add(reference);
    reference.getBindings().clear();
    Binding binding = (Binding)endpointReference.getBinding().clone();
    reference.getBindings().add(binding);
    //reference.setInterfaceContract(endpointReference.getInterfaceContract());
    if (endpointReference.getStatus() != EndpointReference.Status.RESOLVED_BINDING){
      ComponentService service = assemblyFactory.createComponentService();
      service.setName(endpointReference.getTargetEndpoint().getURI());
      reference.getTargets().clear();
      reference.getTargets().add(service);
    }
    return composite;
  } catch (CloneNotSupportedException e) {
    return null;
  }
}
origin: org.apache.tuscany.sca/tuscany-assembly-xml

endpointReference.setTargetEndpoint(endpoint);
if (reference.getTargets().size() > 0){
  endpoint.setURI(reference.getTargets().get(0).getName());
  endpointReference.setStatus(EndpointReference.Status.WIRED_TARGET_NOT_FOUND);
  endpointReference.setUnresolved(true);
origin: org.apache.tuscany.sca/tuscany-base-runtime

endpointReference.setTargetEndpoint(endpoint);
if (reference.getTargets().size() > 0){
  endpoint.setURI(reference.getTargets().get(0).getName());
  endpointReference.setStatus(EndpointReference.Status.WIRED_TARGET_NOT_FOUND);
  endpointReference.setUnresolved(true);
origin: org.apache.tuscany.sca/tuscany-base-runtime

    resolvedReference.getTargets().clear();
  resolvedReference.getTargets().add(wire.getTarget());
} else {
  Monitor.warning(monitor, this, Messages.ASSEMBLY_VALIDATION, "WireIncompatibleInterface", source
origin: org.apache.tuscany.sca/tuscany-builder

    resolvedReference.getTargets().clear();
  resolvedReference.getTargets().add(wire.getTarget());
} else {
  Monitor.warning(monitor, this, Messages.ASSEMBLY_VALIDATION, "WireIncompatibleInterface", source
origin: org.apache.tuscany.sca/tuscany-builder

    resolvedReference.getTargets().clear();
  resolvedReference.getTargets().add(wire.getTarget());
} else {
  Monitor.warning(monitor, this, Messages.ASSEMBLY_VALIDATION, "WireIncompatibleInterface", source
origin: org.apache.tuscany.sca/tuscany-base-runtime

    resolvedReference.getTargets().clear();
  resolvedReference.getTargets().add(wire.getTarget());
} else {
  Monitor.warning(monitor, this, Messages.ASSEMBLY_VALIDATION, "WireIncompatibleInterface", source
origin: org.apache.tuscany.sca/tuscany-sca-client-impl

componentReference.getTargets().add(service);
componentReference.getPolicySets().addAll(service.getPolicySets());
componentReference.getRequiredIntents().addAll(service.getRequiredIntents());
origin: org.apache.tuscany.sca/tuscany-base-runtime

componentReference.getTargets().add(service);
componentReference.getPolicySets().addAll(service.getPolicySets());
componentReference.getRequiredIntents().addAll(service.getRequiredIntents());
origin: org.apache.tuscany.sca/tuscany-base-runtime

componentReference.getTargets().add(service);
componentReference.getPolicySets().addAll(service.getPolicySets());
componentReference.getRequiredIntents().addAll(service.getRequiredIntents());
origin: org.apache.tuscany.sca/tuscany-domain-node

componentReference.getTargets().add(service);
componentReference.getPolicySets().addAll(service.getPolicySets());
componentReference.getRequiredIntents().addAll(service.getRequiredIntents());
origin: org.apache.tuscany.sca/tuscany-base-runtime

componentReference.getTargets().add(service);
componentReference.getPolicySets().addAll(service.getPolicySets());
componentReference.getRequiredIntents().addAll(service.getRequiredIntents());
origin: org.apache.tuscany.sca/tuscany-builder

if (Boolean.TRUE.equals(reference.getAutowire()) && reference.getTargets().isEmpty()) {
origin: org.apache.tuscany.sca/tuscany-base-runtime

if (Boolean.TRUE.equals(reference.getAutowire()) && reference.getTargets().isEmpty()) {
origin: org.apache.tuscany.sca/tuscany-base-runtime

if (Boolean.TRUE.equals(reference.getAutowire()) && reference.getTargets().isEmpty()) {
org.apache.tuscany.sca.assemblyComponentReferencegetTargets

Popular methods of ComponentReference

  • getName
  • getEndpointReferences
  • getInterfaceContract
  • getBindings
  • setInterfaceContract
  • setName
  • getReference
    Returns the reference defined by the implementation for this reference.
  • getRequiredIntents
  • isForCallback
  • setMultiplicity
  • clone
  • getAutowire
    Return the Boolean value of autowire
  • clone,
  • getAutowire,
  • getCallback,
  • getPolicySets,
  • isNonOverridable,
  • setAutowire,
  • setCallback,
  • setUnresolved,
  • getCallbackService

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFrame (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now