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