Package fr.imag.adele.apam.declarations

Examples of fr.imag.adele.apam.declarations.RequirerInstrumentation$MessageConsumerCallback


      /*
       * Optionally, as a shortcut, a single injection may be specified
       * directly as an attribute of the relation
       */
      RequirerInstrumentation directInstrumentation = parseRelationInstrumentation(element, atomic, false);
      if (directInstrumentation != null) {
        instrumentations.add(directInstrumentation);
      }

      for (Element instrumentation : optional(element.getElements())) {
View Full Code Here


    if ((field == null) && (push == null) && (pull == null)) {
      return mandatory ? new RequirerInstrumentation.RequiredServiceField(atomic, Decoder.UNDEFINED) : null;
    }

    RequirerInstrumentation instrumentation = null;

    if (field != null) {
      instrumentation = new RequirerInstrumentation.RequiredServiceField(atomic, field);
    } else if (push != null) {
      instrumentation = new RequirerInstrumentation.MessageConsumerCallback(atomic, push);
    } else if (pull != null) {
      instrumentation = new RequirerInstrumentation.MessageQueueField(atomic, pull);
    }

    if (!instrumentation.isValidInstrumentation()) {
      errorHandler.report(Severity.ERROR, atomic.getName() + " : invalid class type for field or method " + instrumentation.getName());
    }

    return instrumentation;
  }
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.declarations.RequirerInstrumentation$MessageConsumerCallback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.