Package org.apache.felix.framework

Examples of org.apache.felix.framework.Felix.start()


        System.out.println(" T E S T S");
        System.out.println("-------------------------------------------------------");

        Felix felix = new Felix(felixConf);
        try {
            felix.start();
        } catch (BundleException e) {
            e.printStackTrace();
        }

        getLog().info("Felix started - Waiting for stability");
View Full Code Here


        System.out.println(" T E S T S");       
        System.out.println("-------------------------------------------------------");
       
        Felix felix = new Felix(felixConf);
        try {
            felix.start();
        } catch (BundleException e) {
            e.printStackTrace();
        }
       
        waitForStability(felix.getBundleContext());
View Full Code Here

        activators.add(this);
        activators.add(new BootstrapInstaller(logger, resourceProvider));

        // create the framework and start it
        Felix tmpFelix = new Felix(logger, props, activators);
        tmpFelix.start();

        // only assign field if start succeeds
        this.felix = tmpFelix;

        // log sucess message
View Full Code Here

        System.out.println(" T E S T S");
        System.out.println("-------------------------------------------------------");

        Felix felix = new Felix(felixConf);
        try {
            felix.start();
        } catch (BundleException e) {
            e.printStackTrace();
        }

        getLog().info("Felix started - Waiting for stability");
View Full Code Here

      tempFile.deleteOnExit();
      configMap.put("org.osgi.framework.storage",
          tempFile.getAbsolutePath());
      Felix felix = new Felix(configMap);

      felix.start();
      final BundleContext bundleContext = felix.getBundleContext();

      Set<Bundle> installedBundles = new HashSet<Bundle>();
      for (Object dep : mojoExecution.getMojoDescriptor().getPluginDescriptor().getIntroducedDependencyArtifacts()) {
        Artifact artifact = (Artifact) dep;
View Full Code Here

        felixProps.put(FelixConstants.LOG_LOGGER_PROP, logger);
        felixProps.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, activators);
        try {
            Felix tmpFelix = new SlingFelix(notifiable, felixProps);
            tmpFelix.init(); // call needed due to FELIX-910
            tmpFelix.start();

            // only assign field if start succeeds
            this.felix = tmpFelix;
        } catch (BundleException be) {
            throw be;
View Full Code Here

    private void doStart()
        throws Exception
    {
        Felix tmp = new Felix(createConfig());
        printInfo();
        tmp.start();
        this.felix = tmp;
        log("OSGi framework started", null);
    }

    private void printInfo() {
View Full Code Here

            + "javax.xml.transform.stream, " + "org.objectweb.asm, "
            + "junit.framework");

    List activators = new ArrayList();
    Felix felix = new Felix(props, activators);
    felix.start();
    bundleContext = felix.getBundleContext();
  }

  protected void tearDown() throws Exception {
View Full Code Here

    private void doStart()
        throws Exception
    {
        Felix tmp = new Felix(createConfig());
        tmp.start();
        this.felix = tmp;
        log("OSGi framework started", null);
    }

    private void doStop()
View Full Code Here

        map.put(FelixConstants.LOG_LOGGER_PROP, new FelixLogger());

        // Create the framework instance
        Framework framework = new Felix(map);
        framework.init();
        framework.start();

        syscontext = framework.getBundleContext();
    }

    @Test
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.