Examples of Felix


Examples of org.apache.felix.framework.Felix

        activations.add(main);
       
        try
        {
            // Start up the OSGI framework
            m_felix = new Felix(new StringMap(m_configProps, false), activations);
            m_felix.start();
        }
        catch (Exception ex)
        {
            System.err.println("Could not create framework: " + ex);
View Full Code Here

Examples of org.apache.felix.framework.Felix

        return context;
    }

    public void start() throws Exception {

        platform = new Felix(getConfigurationProperties(), null);
        platform.start();

        Bundle systemBundle = platform;

        // call getBundleContext
View Full Code Here

Examples of org.apache.felix.framework.Felix

        _logger.info("Auto deploying bundles from directory " + pluginPath);
        configMap.put(AUTO_DEPLOY_DIR_PROPERY, pluginPath);
        configMap.put(AUTO_DEPLOY_ACTION_PROPERY, AUTO_DEPLOY_INSTALL_VALUE + "," + AUTO_DEPLOY_START_VALUE);       
       
        // Start plugin manager and trackers
        _felix = new Felix(configMap);
        try
        {
            _logger.info("Starting plugin manager...");
            _felix.init();
          process(configMap, _felix.getBundleContext());
View Full Code Here

Examples of org.apache.felix.framework.Felix

            map.put(entry.getKey().toString(), entry.getValue().toString());
        }
        map.put(FelixConstants.LOG_LOGGER_PROP, new FelixLogger());

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

        syscontext = framework.getBundleContext();
    }
View Full Code Here

Examples of org.apache.felix.framework.Felix

        try {
            List<BundleActivator> list = new ArrayList<BundleActivator>();
            list.add(new AutoActivator(configProps));
            configProps.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, list);

            felix = new Felix(configProps);
            felix.start();
            if (LOG.isTraceEnabled())
                LOG.trace("Apache Felix is running");
        }
        catch (Exception ex) {
View Full Code Here

Examples of org.apache.felix.framework.Felix

        try {
            List<BundleActivator> list = new ArrayList<BundleActivator>();
            list.add(new AutoActivator(configProps));
            configProps.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, list);

            felix = new Felix(configProps);
            felix.start();
            if (LOG.isTraceEnabled())
                LOG.trace("Apache Felix is running");
        }
        catch (Exception ex) {
View Full Code Here

Examples of org.apache.felix.framework.Felix

      configMap.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, list);
      configMap.put("felix.log.level", "4");

      // Now create an instance of the framework with
      // our configuration properties and activator.
      felix = new Felix(configMap);
      felix.init();

      // otherProps.put(Constants.FRAMEWORK_STORAGE, "bundles");

       otherProps.put(AutoProcessor.AUTO_DEPLOY_DIR_PROPERY,
View Full Code Here

Examples of org.apache.felix.framework.Felix

        try {
            List<BundleActivator> list = new ArrayList<BundleActivator>();
            list.add(new AutoActivator(configProps));
            configProps.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, list);

            felix = new Felix(configProps);
            felix.start();
            if (LOG.isTraceEnabled())
                LOG.trace("Apache Felix is running");
        }
        catch (Exception ex) {
View Full Code Here

Examples of org.apache.felix.framework.Felix

       
        List<BundleActivator> activators = new ArrayList<BundleActivator>();
        _activator = new Activator();
        activators.add(_activator);

        _felix = new Felix(configMap, activators);
        try
        {
            _felix.start();
           
            _exchangeTracker = new ServiceTracker(_activator.getContext(), ExchangeType.class.getName(), null);
View Full Code Here

Examples of org.apache.felix.framework.Felix

       
        List<BundleActivator> activators = new ArrayList<BundleActivator>();
        _activator = new Activator();
        activators.add(_activator);

        _felix = new Felix(configMap, activators);
        try
        {
            _felix.start();
            _exchangeTracker = new ServiceTracker(_activator.getContext(), ExchangeType.class.getName(), null);
            _exchangeTracker.open();
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.