Examples of BundleTracker


Examples of org.osgi.util.tracker.BundleTracker

        stopped = false;
        executor = Executors.newFixedThreadPool(3);
        contextPathMap = Collections.synchronizedMap(new HashMap<String, WebApplications>())
        eventDispatcher = new WebContainerEventDispatcher(context);
        bt = new BundleTracker(context, Bundle.STARTING | Bundle.ACTIVE, new WebBundleTrackerCustomizer());
        bt.open();
       
        LOGGER.debug("Web container extender started");
    }
View Full Code Here

Examples of org.osgi.util.tracker.BundleTracker

      if ((stateMask & COMPOSITE_BUNDLE_MASK) != COMPOSITE_BUNDLE_MASK)
            throw new IllegalArgumentException();
       if (areMultipleFrameworksAvailable(context)) {
          tracker = new InternalRecursiveBundleTracker(context, stateMask, customizer);
        } else {
         tracker = new BundleTracker(context, stateMask, customizer);
        }
    }
View Full Code Here

Examples of org.osgi.util.tracker.BundleTracker

   
    String bundleId = cb.getSymbolicName()+"/"+cb.getVersion();
    if (alreadyRecursedContexts.putIfAbsent(bundleId, bundleId) == null) {

      // let's track each of the bundle in the CompositeBundle
      BundleTracker bt = new InternalRecursiveBundleTracker(compositeBundleContext, stateMask,
          customizer);
      bt.open();
      BundleTrackerFactory.registerBundleTracker(bundleScope, bt);
    }
  }
View Full Code Here

Examples of org.osgi.util.tracker.BundleTracker

        m_processor.start();

        // Begin by initializing core handlers
        m_processor.activate(m_bundle);

        m_tracker = new BundleTracker(context, Bundle.ACTIVE, new BundleTrackerCustomizer() {
            public Object addingBundle(final Bundle bundle, final BundleEvent event) {
                if (bundle.getBundleId() == m_bundle.getBundleId()) {
                    // Not interested in our own bundle
                    return null;
                }
View Full Code Here

Examples of org.osgi.util.tracker.BundleTracker

        DiscoveryRegistry registry = new DiscoveryRegistry();
        SystemInstance.get().setComponent(DiscoveryRegistry.class, registry);
       
        started = Boolean.FALSE;
        ServerServiceTracker t = new ServerServiceTracker();
        tracker = new BundleTracker(bundleContext, Bundle.ACTIVE | Bundle.STOPPING, t);
        tracker.open();      
    }
View Full Code Here

Examples of org.osgi.util.tracker.BundleTracker

    private RegionsPersistence regionsPersistence;

    void start(BundleContext bundleContext, RegionsPersistence regionsPersistence) {
        this.regionsPersistence = regionsPersistence;
        int stateMask = Bundle.INSTALLED;
        bundleTracker = new BundleTracker(bundleContext, stateMask, new BundleTrackerCustomizer() {
            @Override
            public Object addingBundle(Bundle bundle, BundleEvent bundleEvent) {
                return RegionsBundleTracker.this.addingBundle(bundle);
            }
View Full Code Here

Examples of org.osgi.util.tracker.BundleTracker

    }

    public void start(BundleContext context) throws Exception {
        this.context = context;
        this.context.addBundleListener(this);
        this.tracker = new BundleTracker(this.context, Bundle.ACTIVE | Bundle.STARTING, this);
        if (!this.synchronous) {
            this.executors = createExecutor();
        }
        doStart();
    }
View Full Code Here

Examples of org.osgi.util.tracker.BundleTracker

        stopped = false;
        executor = Executors.newFixedThreadPool(3);
        contextPathMap = Collections.synchronizedMap(new HashMap<String, WebApplications>())
        eventDispatcher = new WebContainerEventDispatcher(context);
        bt = new BundleTracker(context, Bundle.STARTING | Bundle.ACTIVE, new WebBundleTrackerCustomizer());
        bt.open();
       
        LOGGER.debug("Web container extender started");
    }
View Full Code Here

Examples of org.osgi.util.tracker.BundleTracker

        this.configServiceReg = this.context.registerService(ManagedService.class.getName(), new JettyManagedService(this), props);

        this.eventAdmintTracker = new ServiceTracker(this.context, EventAdmin.class.getName(), this);
        this.eventAdmintTracker.open();

        this.bundleTracker = new BundleTracker(this.context, Bundle.ACTIVE | Bundle.STARTING, this);
        this.bundleTracker.open();
    }
View Full Code Here

Examples of org.osgi.util.tracker.BundleTracker

    public void start() {
        super.start();

        UtilityExtensionPoint utilities = this.registry.getExtensionPoint(UtilityExtensionPoint.class);
        this.deployer = utilities.getUtility(Deployer.class);
        bundleTracker = new BundleTracker(context, Bundle.ACTIVE | Bundle.STARTING, this);
        bundleTracker.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.