@Service public class SlingOsgiBundleShutdownHandler extends Object implements org.osgi.framework.SynchronousBundleListener, org.eclipse.gemini.blueprint.context.BundleContextAware
Bundle shutdown event to the injected
services in a defined order.SynchronousBundleListener since only these listeners are
notified when a bundle is about to be stopped in a synchronous
manner. This is required in order to prevent the shutdown event from being handled in the wrong order, e.g.
after the SlingBeanFactoryPostProcessor was invoked.| Constructor and Description |
|---|
SlingOsgiBundleShutdownHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
startListening() |
void |
stopListening() |
@Async public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListener@PostConstruct public void startListening()
@PreDestroy public void stopListening()
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
setBundleContext in interface org.eclipse.gemini.blueprint.context.BundleContextAwareCopyright © 2024. All rights reserved.