Class DistributionLogEventListener

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.osgi.service.event.EventHandler

    public class DistributionLogEventListener
    extends Object
    implements org.osgi.service.event.EventHandler, Closeable
    Listens to log message events (for errors) and package distributed events (for success) and logs both to the given DefaultDistributionLog
    • Constructor Detail

      • DistributionLogEventListener

        public DistributionLogEventListener​(org.osgi.framework.BundleContext context,
                                            DefaultDistributionLog log,
                                            String pubAgentName)
    • Method Detail

      • handleEvent

        public void handleEvent​(org.osgi.service.event.Event event)
        Specified by:
        handleEvent in interface org.osgi.service.event.EventHandler