Package com.vaadin.flow.osgi.support
Class VaadinBundleTracker
- java.lang.Object
-
- org.osgi.util.tracker.BundleTracker<org.osgi.framework.Bundle>
-
- com.vaadin.flow.osgi.support.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
ServletContainerInitializerClassesinstance. OSGi ServiceComponentRuntime creates the Service immediate while activating the bundle.- Since:
- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description VaadinBundleTracker(org.osgi.framework.BundleContext context, ServletContainerInitializerClasses initializerClasses)Creates a new instance of a bundle tracker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.framework.BundleaddingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
-
-
-
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- theBundleContextagainst 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:
addingBundlein interfaceorg.osgi.util.tracker.BundleTrackerCustomizer<org.osgi.framework.Bundle>- Overrides:
addingBundlein classorg.osgi.util.tracker.BundleTracker<org.osgi.framework.Bundle>
-
-