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
Constructors Constructor Description DistributionLogEventListener(org.osgi.framework.BundleContext context, DefaultDistributionLog log, String pubAgentName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidhandleEvent(org.osgi.service.event.Event event)
-
-
-
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:
handleEventin interfaceorg.osgi.service.event.EventHandler
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-