Examples of Architecture


Examples of org.apache.felix.ipojo.architecture.Architecture

    @Test
    public void testScope() {
        ServiceReference ref = ipojoHelper.getServiceReferenceByName(Architecture.class.getName(), instance.getInstanceName());
        assertNotNull("Check architecture availability", ref);
        Architecture arch = (Architecture) getContext().getService(ref);
        assertTrue("Validity", arch.getInstanceDescription().getState() == ComponentInstance.VALID);

        // Get internal service
        ServiceContext sc = getServiceContext(instance);
        ServiceReference ref2 = ipojoHelper.getServiceReference(sc, CheckService.class.getName(), null);
        assertNotNull("Check CheckService availability", ref2);
View Full Code Here

Examples of org.apache.felix.ipojo.architecture.Architecture

        } catch (Exception e) {
            fail("Cannot instantiate under : " + e.getMessage());
        }
        ServiceReference ref = ipojoHelper.getServiceReferenceByName(Architecture.class.getName(), "under");
        assertNotNull("Check architecture availability", ref);
        Architecture arch = (Architecture) getContext().getService(ref);
        CompositeInstanceDescription id = (CompositeInstanceDescription) arch.getInstanceDescription();

        assertTrue("Check instance validity - 1", id.getState() == ComponentInstance.VALID);
        InstanceDescription[] contained = id.getContainedInstances();
        assertEquals("Check contained instances count", contained.length, 3);
        assertEquals("Check instance name", id.getName(), "under");
View Full Code Here

Examples of org.apache.felix.ipojo.architecture.Architecture

     */
    @Test
    public void testCreationOfIgnoreCase1() {
          ServiceReference refv1 = ipojoHelper.getServiceReferenceByName(Architecture.class.getName(), "IgnoreCase-1");
          Assert.assertNotNull(refv1);
          Architecture arch = (Architecture) osgiHelper.getRawServiceObject(refv1);
          Assert.assertEquals(ComponentInstance.VALID, arch.getInstanceDescription().getState());

          HandlerDescription desc = arch.getInstanceDescription()
              .getHandlerDescription("orG.apAche.feliX.iPOJO.tests.CORE.hAnDlEr:EmPtY")// Check with the declared name.

          Assert.assertNotNull(desc);
          Assert.assertTrue(desc.isValid());
    }
View Full Code Here

Examples of org.apache.felix.ipojo.architecture.Architecture

     */
    @Test
    public void testCreationOfIgnoreCase2() {
          ServiceReference refv1 = ipojoHelper.getServiceReferenceByName(Architecture.class.getName(), "IgnoreCase-2");
          Assert.assertNotNull(refv1);
          Architecture arch = (Architecture) osgiHelper.getRawServiceObject(refv1);
          Assert.assertEquals(ComponentInstance.VALID, arch.getInstanceDescription().getState());

          HandlerDescription desc = arch.getInstanceDescription()
              .getHandlerDescription("org.apache.felix.ipojo.tests.core.handler:empty"); // Check with different case.
          Assert.assertNotNull(desc);
          Assert.assertTrue(desc.isValid());
    }
View Full Code Here

Examples of org.gradle.nativeplatform.platform.Architecture

    public File getArchiver(NativePlatformInternal targetPlatform) {
        return new File(binaryPaths.get(getPlatformArchitecture(targetPlatform)), ARCHIVER_FILENAME);
    }

    public File getAssembler(NativePlatformInternal targetPlatform) {
        Architecture architecture = getPlatformArchitecture(targetPlatform);
        return new File(binaryPaths.get(architecture), assemblerFilenames.get(architecture));
    }
View Full Code Here

Examples of org.jakstab.ssl.Architecture

      }
     
      @Override
      public Set<AbstractState> visit(RTLAssume stmt) {

        Architecture arch = Program.getProgram().getArchitecture();
        /////////
        // Special case for non-exit edges of x86 REP/REPNZ prefixes (for loops using ecx)
        if (stmt.getSource().getType() == RTLGoto.Type.STRING_LENGTH_CHECK) {
          BasedNumberElement loopCounter = getValue(arch.loopCounter());
          if (loopCounter.isTop() || loopCounter.isNumberTop()) {
            X86Instruction instr = (X86Instruction)Program.getProgram().getInstruction(stmt.getAddress());
            BasedNumberValuation post = copyThisState();
            if (instr.hasEsiBasedMemorySource()) {
              logger.debug(stmt.getLabel() + ": ecx is unknown in REP/REPNZ, widening esi");
              post.setValue(arch.stringSource(), new BasedNumberElement(
                  getValue(arch.stringSource()).getRegion(),
                  NumberElement.getTop(arch.getAddressBitWidth())));
            }
            if (instr.hasEdiBasedMemoryTarget()) {
              logger.debug(stmt.getLabel() + ": ecx is unknown in REP/REPNZ, widening edi");
              post.setValue(arch.stringTarget(), new BasedNumberElement(
                  getValue(arch.stringTarget()).getRegion(),
                  NumberElement.getTop(arch.getAddressBitWidth())));
            }
            // STRING_LENGTH_CHECK assumptions are ecx == 0 or !(ecx == 0)
            RTLOperation operation = (RTLOperation)stmt.getAssumption();
            if (operation.getOperator() == Operator.EQUAL) {
              assert operation.getOperands()[0] == arch.loopCounter();
              assert ((RTLNumber)operation.getOperands()[1]).longValue() == 0;
              post.setValue(arch.loopCounter(), abstractEval(operation.getOperands()[1]));
            }
           
            return Collections.singleton((AbstractState)post);
          }
        }
View Full Code Here

Examples of org.redline_rpm.header.Architecture

    builder.setPackage( name, version, release);
   
    RpmType type = RpmType.valueOf( editor.getValue( "rpm:type", BINARY.toString()));
    builder.setType( type);
   
    Architecture arch = Architecture.valueOf( editor.getValue( "rpm:architecture", NOARCH.toString()));
    Os os = Os.valueOf( editor.getValue( "rpm:os", LINUX.toString()));
    builder.setPlatform( arch, os);
   
    builder.setSummary( editor.getValue( "rpm:summary/text()"));
    builder.setDescription( editor.getValue( "rpm:description/text()"));
View Full Code Here

Examples of org.rhq.core.domain.content.Architecture

            File file = files.values().iterator().next();

            int bundleVersionId = Integer.parseInt(getFormField(formFields, "bundleVersionId", null));
            String name = getFormField(formFields, "name", file.getName());
            String version = getFormField(formFields, "version", Integer.toString(bundleVersionId));
            Architecture architecture = new Architecture(getFormField(formFields, "arch", "noarch"));
            InputStream fileStream = new FileInputStream(file);
            try {
                BundleManagerLocal bundleManager = LookupUtil.getBundleManager();
                BundleFile bundleFile = bundleManager.addBundleFile(subject, bundleVersionId, name, version,
                    architecture, fileStream);
View Full Code Here

Examples of sagan.tools.Architecture

    }

    private void extractPlatformDownloadLink(Download download) {
        ToolSuitePlatform platform = createOrFindPlatform(download.getOs(), download.getVersion());
        EclipseVersion eclipseVersion = createOrFindEclipseVersion(download.getEclipseVersion(), platform);
        Architecture architecture = createOrFindArchitecture(download.getDescription(), eclipseVersion, platform);

        DownloadLink link = downloadLinkExtractor.createDownloadLink(download);
        architecture.getDownloadLinks().add(link);
    }
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.