Package fr.imag.adele.apam

Examples of fr.imag.adele.apam.Implementation.createInstance()


    new HashMap<String, String>() {
        {
      put("property-subject-b", "charlie(parent)");
        }
    });
  Instance instanceDelta = implementationCase12.createInstance(null,
    new HashMap<String, String>() {
        {
      put("property-subject-b", "delta(parent)");
        }
    });
View Full Code Here


  instanceCharlie.getLink("case12child");
  instanceDelta.getLink("case12child");

  // Instance of the subject-a (parent)
  Implementation subjectAimpl = waitForImplByName(null, "subject-a");
  Instance subjectA = subjectAimpl.createInstance(null, null);

  // Force the field to be injected
  S6Impl s6parent = (S6Impl) subjectA.getServiceObject();
  s6parent.getS6();
View Full Code Here

    null, "subject-c-composite");
  Composite subjectCComposite = (Composite) subjectCCompositeType
    .createInstance(null, Collections.<String, String> emptyMap());

  // Instance of the subject-a (parent)
  Instance subjectC = subjectCimpl
    .createInstance(subjectCComposite, null);

  auxListProperties("\t", subjectC);

  System.err.println(subjectC.getProperty("property-case-15"));
View Full Code Here

  Composite subjectEComposite = (Composite) subjectECompositeType
    .createInstance(null, Collections.<String, String> emptyMap());

  Implementation implementationAlpha = waitForImplByName(null,
    "impl-case-17");
  Instance instanceEcho = implementationAlpha.createInstance(
    subjectEComposite, null);

  Implementation subjectCimpl = waitForImplByName(null, "subject-e");

  // Instance of the subject-a (parent)
View Full Code Here

    subjectEComposite, null);

  Implementation subjectCimpl = waitForImplByName(null, "subject-e");

  // Instance of the subject-a (parent)
  Instance subjectE = subjectCimpl.createInstance(null, null);
  S6Impl s6 = (S6Impl) subjectE.getServiceObject();

  // Force injection
  s6.getS6();
View Full Code Here

    null, "subject-b-composite");
  Composite subjectBComposite = (Composite) subjectBCompositeType
    .createInstance(null, Collections.<String, String> emptyMap());

  // Instance of the subject-a (parent)
  Instance subjectB = subjectBimpl
    .createInstance(subjectBComposite, null);

  auxListProperties("\t", subjectB);

  System.err.println(subjectB.getProperty("property-case-14"));
View Full Code Here

    null, "subject-d-composite");
  Composite subjectDComposite = (Composite) subjectCCompositeType
    .createInstance(null, Collections.<String, String> emptyMap());

  // Instance of the subject-a (parent)
  Instance subjectD = subjectDimpl
    .createInstance(subjectDComposite, null);

  auxListProperties("\t", subjectD);

  Assert.assertTrue(
View Full Code Here

    public void InjectionUpdateLinkForArrayType_tc014() {

  Implementation s1Impl = waitForImplByName(null,
    "fr.imag.adele.apam.pax.test.impl.S1Impl-tc014");

  Instance s1Inst = s1Impl.createInstance(null, null);

  apam.waitForIt(Constants.CONST_WAIT_TIME);

  S1Impl s1 = (S1Impl) s1Inst.getServiceObject();
View Full Code Here

      wire.remove();
  }

  Implementation sansungImpl = waitForImplByName(null, "SamsungSwitch");

  Instance sansungInst = sansungImpl.createInstance(null, null);

  apam.waitForIt(Constants.CONST_WAIT_TIME);

  GenericSwitch samsungSwitch = (GenericSwitch) sansungInst
    .getServiceObject();
View Full Code Here

  Implementation sansungImpl = waitForImplByName(null, "SamsungSwitch");

  // This instance is created to avoid apam to instantiate automatically
  // (done in case it doesnt find any instance available)
  Instance sansungInstInitial = sansungImpl.createInstance(null, null);

  Instance s1Inst = s1Impl.createInstance(null, null);

  apam.waitForIt(Constants.CONST_WAIT_TIME);
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.