Examples of ResourceReference


Examples of com.sun.enterprise.deployment.web.ResourceReference

    /**
     * Equality on name.
     */
    public boolean equals(Object object) {
  if (object instanceof ResourceReference) {
      ResourceReference resourceReference = (ResourceReference) object;
      return resourceReference.getName().equals(this.getName());
  }
  return false;
    }
View Full Code Here

Examples of com.vaadin.server.ResourceReference

                @Override
                public String getFilename() {
                    return null;
                }
            };
            getState().setUrl(new ResourceReference(resource, this, "test"));
        }
View Full Code Here

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

     *  Validate the instrumented provided resources are actually declared as provided 
     */
    ComponentDeclaration effective = getGroup() != null ? getComponent().getEffectiveDeclaration(getGroup()) : getComponent();
    for (ProviderInstrumentation instrumentation : getComponent().getProviderInstrumentation()) {
     
      ResourceReference instrumented = instrumentation.getProvidedResource();
     
      checkResourceExists(instrumented);
     
      if ( instrumented != null && ! (instrumented instanceof UnknownReference) && !effective.getProvidedResources().contains(instrumented)) {
        error("the return type of the specified method "+quoted(instrumentation.getName())+ " is not one of the provided resources");
View Full Code Here

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

    /*
     * validate missing exception
     */
    if (getRelation().getMissingException() != null) {
      checkResourceExists(new ResourceReference(getRelation().getMissingException()));
    }
   
  }
View Full Code Here

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

     * For java resources and specifications the metadata contains all the information to find the
     * provider components. For specific component references we search by name.
     */
    String requirementQuery = null;
   
    ResourceReference requestedResource = relation.getTarget().as(ResourceReference.class);
    if (requestedResource != null) {
     
      if (requestedResource instanceof InterfaceReference) {
        requirementQuery = "("+CST.PROVIDE_INTERFACES+"*>" + requestedResource.getJavaType() + ")";
      }
     
      else if (requestedResource instanceof MessageReference) {
        requirementQuery = "("+CST.PROVIDE_MESSAGES+"*>" + requestedResource.getJavaType() + ")";
      }
     
    }
   
    ComponentReference<?> requestedComponent = relation.getTarget().as(ComponentReference.class);
View Full Code Here

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

      boolean injected = false;
      boolean defined = false;

      for (ProviderInstrumentation providerInstrumentation : declaration.getProviderInstrumentation()) {

        ResourceReference instrumentedResource = providerInstrumentation.getProvidedResource();

        if (instrumentedResource instanceof UnknownReference) {
          continue;
        }

        defined = true;

        if (!instrumentedResource.equals(message)) {
          continue;
        }

        injected = true;
        break;
View Full Code Here

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

      break;
    }

    if (attribute.equals(Decoder.UNDEFINED) && mandatory) {
      errorHandler.report(Severity.ERROR, "component name or resource must be specified in " + element.getName());
      return new UnknownReference(new ResourceReference(Decoder.UNDEFINED));
    }

    if (attribute.equals(Decoder.UNDEFINED) && !mandatory) {
      return null;
    }
View Full Code Here

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

      return parseResourceReference(inComponent, element, attribute, mandatory);
    }

    if (mandatory) {
      errorHandler.report(Severity.ERROR, "component name or resource must be specified in " + element.getName());
      return  new UnknownReference(new ResourceReference(Decoder.UNDEFINED));
    }

    return null;
  }
View Full Code Here

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

    }
   

    if (mandatory) {
      errorHandler.report(Severity.ERROR, "resource name must be specified in " + element.getName());
      return new UnknownReference(new ResourceReference(element.getName()));
    }

    return null;
  }
View Full Code Here

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

        if (relationName.equals(CST.REL_COMPOSITE) || relationName.equals(CST.REL_COMPOTYPE) || relationName.equals(CST.REL_CONTAINS)) {
          /*
           * For relations that navigate the nested hierarchy of composites, we cannot know the actual types
           * at build-time, as this hierarchy is completely build at runtime. We simply stop navigation
           */
          target = new UnknownReference(new ResourceReference("<RUNTIME>"));
        }       
        else {
          /*
           * For relations that navigate the abstraction levels, we can navigate to more abstract levels, and
           * for more concrete levels we continue validating in the same context
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.