Class 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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger logger  
      private 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
      void publish​(SMBEvent message)  
      void subscribe​(java.lang.Object listener)  
      boolean unsubscribe​(java.lang.Object listener)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)