Package com.hierynomus.smbj.event
Class SMBEventBus
- java.lang.Object
-
- com.hierynomus.smbj.event.SMBEventBus
-
public class SMBEventBus extends java.lang.ObjectOur own delegating class to wrap the MBassador event bus. This ensures that we only need to use their annotations throughout the codebase, and can easily switch it out if need be.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Loggerloggerprivate net.engio.mbassy.bus.common.PubSubSupport<SMBEvent>wrappedBus
-
Constructor Summary
Constructors Constructor Description SMBEventBus()SMBEventBus(net.engio.mbassy.bus.common.PubSubSupport<SMBEvent> wrappedBus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpublish(SMBEvent message)voidsubscribe(java.lang.Object listener)booleanunsubscribe(java.lang.Object listener)
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
wrappedBus
private net.engio.mbassy.bus.common.PubSubSupport<SMBEvent> wrappedBus
-
-
Constructor Detail
-
SMBEventBus
public SMBEventBus()
-
SMBEventBus
public SMBEventBus(net.engio.mbassy.bus.common.PubSubSupport<SMBEvent> wrappedBus)
-
-
Method Detail
-
subscribe
public void subscribe(java.lang.Object listener)
-
unsubscribe
public boolean unsubscribe(java.lang.Object listener)
-
publish
public void publish(SMBEvent message)
-
-