Package fr.imag.adele.apam.declarations.references.resources

Examples of fr.imag.adele.apam.declarations.references.resources.InterfaceReference


    String interfaces = parseString(component.getName(), element, ATT_INTERFACES, false);
    String messages = parseString(component.getName(), element, ATT_MESSAGES, false);
    String packages = parseString(component.getName(), element, ATT_PACKAGES, false);

    for (String interfaceName : list(interfaces,true)) {
      component.getProvidedResources().add(new InterfaceReference(interfaceName));
    }

    for (String message : list(messages,true)) {
      component.getProvidedResources().add(new MessageReference(message));
    }
View Full Code Here


        }

        // Check the provides interfaces and messages
        if(isDefined(CST.PROVIDE_INTERFACES)) {
            for(String ref : list(CST.PROVIDE_INTERFACES)) {
              component.getProvidedResources().add(new InterfaceReference(ref));
            }
        }
       
        if(isDefined(CST.PROVIDE_MESSAGES)) {
            for(String ref : list(CST.PROVIDE_MESSAGES)) {
View Full Code Here

    String encodedReference = property(propertyName);

      if (encodedReference.startsWith("{"+ComponentParser.INTERFACE+"}")) {
        encodedReference = encodedReference.substring(("{"+ComponentParser.INTERFACE+"}").length());
        return (!encodedReference.isEmpty()) ? new InterfaceReference(encodedReference) : new UnknownReference(new InterfaceReference("unknown"));
      }
      else if (encodedReference.startsWith("{"+ComponentParser.MESSAGE+"}")) {
        encodedReference = encodedReference.substring(("{"+ComponentParser.MESSAGE+"}").length());
        return (!encodedReference.isEmpty()) ? new MessageReference(encodedReference) : new UnknownReference(new MessageReference("unknown"));
      }
View Full Code Here

        endpointUrl);
 
      Object proxyRaw = null;
 
      if (dependency.getTarget() instanceof InterfaceReference) {
          InterfaceReference ir = (InterfaceReference) dependency
            .getTarget();
 
          logger.info("Type to be loaded {}", ir.getJavaType());
 
          logger.info("comparing interface {} with {}",
            interfacename, ir.getJavaType());
 
          if (interfacename.equals(ir.getJavaType())) {
 
        Class ifaceClazz = Class.forName(interfacename);
 
        logger.info(
          "connecting the interface {} to the endpoint {}",
          interfacename, endpointUrl);
 
        ClientProxyFactoryBean factory = new ClientProxyFactoryBean();
        factory.setServiceClass(ifaceClazz);
        factory.setAddress(endpointUrl);
        proxyRaw = factory.create();
 
          } else {
        logger.info("{} and {} are not equal", interfacename,
          ir.getJavaType());
          }
      } else {
          logger.info("its not a InterfaceReference");
      }
 
View Full Code Here

  switch (rr_type) {
  case instance:
      rr = new InstanceReference(rr_name);
      break;
  case itf:
      rr = new InterfaceReference(rr_name);
      break;
  case message:
      rr = new MessageReference(rr_name);
      break;
  case specification:
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.declarations.references.resources.InterfaceReference

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.