Class DistributionLogEventListener
java.lang.Object
org.apache.sling.distribution.journal.shared.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 Summary
ConstructorsConstructorDescriptionDistributionLogEventListener
(org.osgi.framework.BundleContext context, DefaultDistributionLog log, String pubAgentName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
handleEvent
(org.osgi.service.event.Event event)
-
Constructor Details
-
Method Details
-
handleEvent
public void handleEvent(org.osgi.service.event.Event event) - Specified by:
handleEvent
in interfaceorg.osgi.service.event.EventHandler
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-