Examples of Implementation


Examples of fr.imag.adele.apam.Implementation

    }

    @Test
    public void SubstitutionReachingMultipleNodesWithKeywordCompositeType_tc124() {

  Implementation subjectBimpl = waitForImplByName(null, "subject-b");

  CompositeType subjectBCompositeType = (CompositeType) waitForImplByName(
    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

Examples of fr.imag.adele.apam.Implementation

    }

    @Test
    public void SubstitutionReachingMultipleNodesWithKeywordSpec_tc126() {

  Implementation subjectDimpl = waitForImplByName(null, "subject-d");

  CompositeType subjectCCompositeType = (CompositeType) waitForImplByName(
    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

Examples of fr.imag.adele.apam.Implementation

     *       native array type
     */
    @Test
    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();

  Eletronic[] eletronicInstancesInArray = s1
    .getEletronicInstancesInArray();
  int initialSize = 0;

  if (eletronicInstancesInArray != null) {
      initialSize = eletronicInstancesInArray.length;
  }

  for (Link wire : s1Inst.getRawLinks()) {
      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

Examples of fr.imag.adele.apam.Implementation

    }

    @Test
    public void InjectionUpdateLinkForSetType_tc013() {

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

  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);

  S1Impl s1 = (S1Impl) s1Inst.getServiceObject();

  int initialSize = s1.getEletronicInstancesInSet().size();

  auxDisconectWires(s1Inst);

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

  apam.waitForIt(Constants.CONST_WAIT_TIME);

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

Examples of org.apache.tuscany.model.assembly.Implementation

            // merge new module definition with the existing one
            Module oldModule = module;
            Module newModule = (Module) model;
            module = newModule;
            for (Component component : newModule.getComponents()) {
                Implementation componentImplementation = component.getImplementation();
                if (componentImplementation == null) {
                    ConfigurationException e = new MissingImplementationException("Component implementation not set");
                    e.addContextName(component.getName());
                    e.addContextName(getName());
                    throw e;
View Full Code Here

Examples of org.apache.tuscany.sca.assembly.Implementation

     */
    public void wireComposite(Composite composite) {

        // Wire nested composites recursively
        for (Component component : composite.getComponents()) {
            Implementation implementation = component.getImplementation();
            if (implementation instanceof Composite) {
                wireComposite((Composite)implementation);
            }
        }

View Full Code Here

Examples of org.huihoo.workflow.xpdl.activity.Implementation

      WorkflowProcess workflowProcess = (WorkflowProcess) processList.get(i);
      List activies = workflowProcess.getWorkflowActivities();
      int activitySize = activies.size();

      WorkflowActivity activity = null;
      Implementation impl = null;
      ToolImplementation toolImpl = null;
      ToolSet toolSet = null;
      SubFlowImplementation subFlowImpl = null;

      for (int j = 0; j < activitySize; ++j)
View Full Code Here

Examples of org.jboss.forge.classloader.mock.result.Implementation

      ClassLoader dep1Loader = registry.getAddon(AddonId.from("dep", "1")).getClassLoader();

      Class<?> foreignType = dep1Loader.loadClass(InstanceFactoryImpl.class.getName());
      try
      {
         Implementation local = (Implementation) foreignType.getMethod("getInstance")
                  .invoke(foreignType.newInstance());

         Assert.fail("Should have received a " + ClassCastException.class.getName() + " but got a real object ["
                  + local + "]");
      }
      catch (ClassCastException e)
      {
      }
      catch (Exception e)
      {
         Assert.fail("Should have received a " + ClassCastException.class.getName() + " but was: " + e);
      }

      Object delegate = foreignType.newInstance();
      InstanceFactoryImpl enhancedFactory = (InstanceFactoryImpl) ClassLoaderAdapterBuilder.callingLoader(thisLoader)
               .delegateLoader(dep1Loader).enhance(delegate);

      Assert.assertTrue(Proxies.isForgeProxy(enhancedFactory));
      Implementation enhancedInstance = enhancedFactory.getInstance();

      Class<?> unwrappedType = Proxies.unwrapProxyTypes(enhancedInstance.getClass(), dep1Loader);
      Assert.assertEquals(ClassLoaders.loadClass(dep1Loader, Implementation.class.getName()), unwrappedType);
   }
View Full Code Here

Examples of org.odmg.Implementation

     *
     * @param product The product to store
     */
    public static void storeProduct(Product product)
    {
        Implementation impl = OJB.getInstance();
        Transaction    tx   = impl.newTransaction();

        tx.begin();
        tx.lock(product, Transaction.WRITE);
        tx.commit();
    }
View Full Code Here

Examples of org.switchyard.deploy.Implementation

                requiresImpl = getPolicyRequirements(component.getImplementation());
            } catch (Exception e) {
                throw new SwitchYardException(e);
            }
           
            Implementation impl = new Implementation(component.getImplementation());
            List<ServiceReference> references = new LinkedList<ServiceReference>();
           
            // register a reference for each one declared in the component
            for (ComponentReferenceModel reference : component.getReferences()) {
                // Create the reference name qualified with component name to ensure uniqueness
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.