Package fr.imag.adele.apam.declarations

Examples of fr.imag.adele.apam.declarations.SpecificationDeclaration


   * structure.
   */
  private static class ApamOnlySpecification extends BaseApformComponent<Specification, SpecificationDeclaration> implements ApformSpecification {

    public ApamOnlySpecification(String name, Set<ResourceReference> resources, Map<String, String> properties) {
      super(new SpecificationDeclaration(name));
      declaration.getProvidedResources().addAll(resources);
      if (properties != null) {
        declaration.getProperties().putAll(properties);
      }
    }
View Full Code Here


  public static final String PROPERTY_VERSION_MAVEN_ARTIFACT   = "maven.artifactId";
  public static final String PROPERTY_VERSION_MAVEN_VERSION  = "maven.version";
 
  private static final ComponentDeclaration getVersionedComponentTemplate(Artifact artifact) {
   
    SpecificationDeclaration template = new SpecificationDeclaration("template");
   
    addProperty(template,PROPERTY_VERSION_APAM,"version",ApamMavenProperties.mavenVersion.replace('-', '.'));

    addProperty(template,PROPERTY_VERSION_MAVEN_GROUP,"string",artifact.getGroupId());
    addProperty(template,PROPERTY_VERSION_MAVEN_ARTIFACT,"string",artifact.getArtifactId());
View Full Code Here

  /**
   * Parse an specification declaration
   */
  private SpecificationDeclaration parseSpecification(Element element) {

    SpecificationDeclaration declaration = new SpecificationDeclaration(parseName(element));
    parseComponent(element, declaration);

    return declaration;
  }
View Full Code Here

           
    info("parsing ACR capability for component : " + componentName + " of type " + componentkind);

    switch(kind(componentkind)) {
      case SPECIFICATION:
              component = new SpecificationDeclaration(componentName);
        break;
      case IMPLEMENTATION:
            if (isDefined(CST.APAM_COMPOSITE) && flag(CST.APAM_COMPOSITE)) {
                 
              SpecificationReference specification             = reference(CST.PROVIDE_SPECIFICATION, ComponentKind.SPECIFICATION);
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.declarations.SpecificationDeclaration

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.