|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.squeakysand.osgi.framework.LoggingServiceListener
public class LoggingServiceListener
ServiceListener implementation that will listen for events based on the supplied event filter and will log them using SLF4J.
| Constructor Summary | |
|---|---|
LoggingServiceListener()
Creates a LoggingServiceListener that logs with its own logger. |
|
LoggingServiceListener(Logger logger)
Creates a LoggingServiceListener that logs with the supplied Logger instance. |
|
| Method Summary | |
|---|---|
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
|
void |
setEventFilter(Predicate<? super org.osgi.framework.ServiceEvent> eventFilter)
Sets the filter to use to determine which ServiceEvents should be logged. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoggingServiceListener()
LoggingServiceListener that logs with its own logger.
public LoggingServiceListener(Logger logger)
LoggingServiceListener that logs with the supplied Logger instance.
logger - the Logger instance ot use.| Method Detail |
|---|
public void setEventFilter(Predicate<? super org.osgi.framework.ServiceEvent> eventFilter)
ServiceEvents should be logged.
eventFilter - the filter to use.public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||