Class VaadinBundleTracker

  • All Implemented Interfaces:
    org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>

    public class VaadinBundleTracker
    extends org.osgi.util.tracker.BundleTracker<org.osgi.framework.Bundle>
    Bundle tracker to discover all classes in active bundles.

    The tracker scans for all classes in active bundles which have Vaadin-OSGi-Extender header and report them to the ServletContainerInitializerClasses instance. OSGi ServiceComponentRuntime creates the Service immediate while activating the bundle.

    Since:
    Author:
    Vaadin Ltd
    • Constructor Detail

      • VaadinBundleTracker

        public VaadinBundleTracker​(org.osgi.framework.BundleContext context,
                                   ServletContainerInitializerClasses initializerClasses)
        Creates a new instance of a bundle tracker. OSGi ServiceComponentRuntime injects the BundleContext because of the @Activate
        Parameters:
        context - the BundleContext against which the tracking is done
    • Method Detail

      • addingBundle

        public org.osgi.framework.Bundle addingBundle​(org.osgi.framework.Bundle bundle,
                                                      org.osgi.framework.BundleEvent event)
        Specified by:
        addingBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>
        Overrides:
        addingBundle in class org.osgi.util.tracker.BundleTracker<org.osgi.framework.Bundle>