Package fr.imag.adele.apam.apform

Examples of fr.imag.adele.apam.apform.ApformImplementation


         * Create all instances and implementations required in APAM
         */
        Set<ApformOSGiInstance> instances = getMatchingInstances(reference);
      for(ApformOSGiInstance instance : instances) {

      ApformImplementation implementation = new ApformOSGiImplementation(instance);

      if (CST.componentBroker.getImpl(implementation.getDeclaration().getName()) == null) {
        Apform2Apam.newImplementation(implementation);
      }

      if (CST.componentBroker.getInst(instance.getDeclaration().getName()) == null) {
        Apform2Apam.newInstance(instance);
View Full Code Here


     
      if (!isMatchable(reference))
        continue;
       
      ApformOSGiInstance instance     = new ApformOSGiInstance(specification, reference);
      ApformImplementation implementation = new ApformOSGiImplementation(instance);

      if (CST.componentBroker.getImpl(implementation.getDeclaration().getName()) == null) {
        Apform2Apam.newImplementation(implementation);
      }

      if (CST.componentBroker.getInst(instance.getDeclaration().getName()) == null) {
        Apform2Apam.newInstance(instance);
View Full Code Here

     * Creates an APAM implementation corresponding to the given factory and specification
     */
    public void factoryBound(IPojoFactory factory, Specification specification) {
        if (specification != null &&  CST.componentBroker.getImpl(factory.getName()) == null) {
          VersionedReference<SpecificationDeclaration> specificationReference = specification != null ? VersionedReference.any(specification.getApformSpec().getDeclaration().getReference()) : null;
          ApformImplementation implementation = new ApformIPojoImplementation((IPojoFactory) factory, specificationReference);
            Apform2Apam.newImplementation(implementation);
        }
    }
View Full Code Here

    if (parent == null) {
      parent = CompositeTypeImpl.getRootCompositeType();
    }

    ApformImplementation apfCompo = new ApamOnlyCompositeType(name, specification, mainComponent, models, properties);

    /*
     * If the provided specification is not installed force a resolution
     */
    if (specification != null && CST.componentBroker.getSpec(specification) == null) {
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.apform.ApformImplementation

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.