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