Package com.hierynomus.smbj.event
Class SMBEventBus
- java.lang.Object
-
- com.hierynomus.smbj.event.SMBEventBus
-
public class SMBEventBus extends java.lang.Object
Our 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.
-
-
Constructor Summary
Constructors Constructor Description SMBEventBus()
SMBEventBus(net.engio.mbassy.bus.common.PubSubSupport<SMBEvent> wrappedBus)
-
Method Summary
Modifier and Type Method Description void
publish(SMBEvent message)
void
subscribe(java.lang.Object listener)
boolean
unsubscribe(java.lang.Object listener)
-
-
-
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)
-
-