Package org.apache.felix.framework

Examples of org.apache.felix.framework.FrameworkFactory


        if (mustInitAwt(configProperties)) {
                initAwt(configProperties);
        }
   
        try {
      FrameworkFactory frameworkFactory = getFrameworkFactory();
      ArrayList<BundleActivator> activators = new ArrayList<BundleActivator>();

      // Must put the URL handler first because it is used during
      // the auto-update process.
      activators.add(new EPURLHandlerActivator());
      activators.add(new EclipseProjectURLAutoUpdater());

      StringMap stringMap = new StringMap(configProperties, false);
      stringMap.put("felix.systembundle.activators", activators);

      framework = (Felix)frameworkFactory.newFramework(stringMap);
      framework.init();
      AutoProcessor.process(stringMap, framework.getBundleContext());
      framework.start();
      framework.waitForStop(0);
      System.exit(0);
View Full Code Here


        if (mustInitAwt(configProperties)) {
            initAwt(configProperties);
        }

    try {
      FrameworkFactory frameworkFactory = getFrameworkFactory();
      ArrayList<BundleActivator> activators = new ArrayList<BundleActivator>();

      // Must put the URL handler first because it is used during
      // the auto-update process.
      activators.add(new EPURLHandlerActivator());
      activators.add(new EclipseProjectURLAutoUpdater());

      StringMap stringMap = new StringMap(configProperties);
      stringMap.put("felix.systembundle.activators", activators);

      framework = (Felix)frameworkFactory.newFramework(stringMap);
      framework.init();
      AutoProcessor.process(stringMap, framework.getBundleContext());
      framework.start();
      framework.waitForStop(0);
      System.exit(0);
View Full Code Here

                    .set(Constants.BUNDLE_SYMBOLICNAME, "version.service")
                    .set(Constants.BUNDLE_ACTIVATOR, Activator.class.getName())
                    .set(Constants.DYNAMICIMPORT_PACKAGE, "*")
                    .build()),
                frameworkProperty("org.osgi.service.http.port").value(String.valueOf(httpPort))));
        NativeTestContainer container = new NativeTestContainer(system, new FrameworkFactory());
        container.start();
        try {
            OMFactory factory = OMAbstractFactory.getOMFactory();
            OMElement payload = factory.createOMElement("getVersion", factory.createOMNamespace("http://service.osgi.axis2.apache.org", "ns"));
            Options options = new Options();
View Full Code Here

        final Map<String, String> configuration = new HashMap<String, String>();
        configuration.put( Constants.FRAMEWORK_STORAGE_CLEAN, Constants.FRAMEWORK_STORAGE_CLEAN_ONFIRSTINIT );
        configuration.put( Constants.FRAMEWORK_STORAGE, "target/bundlecache" );

        final FrameworkFactory frameworkFactory = new FrameworkFactory();
        framework = frameworkFactory.newFramework( configuration );
        framework.start();
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.framework.FrameworkFactory

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.