Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getEventBus (0.21 sec)

  1. android/guava/src/com/google/common/eventbus/SubscriberExceptionContext.java

      }
    
      /**
       * @return The {@link EventBus} that handled the event and the subscriber. Useful for broadcasting
       *     a new event based on the error.
       */
      public EventBus getEventBus() {
        return eventBus;
      }
    
      /** @return The event object that caused the subscriber to throw. */
      public Object getEvent() {
        return event;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:05:46 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        eventBus.register(subscriber);
        eventBus.post(EVENT);
    
        assertEquals("Cause should be available.", exception, handler.exception);
        assertEquals("EventBus should be available.", eventBus, handler.context.getEventBus());
        assertEquals("Event should be available.", EVENT, handler.context.getEvent());
        assertEquals("Subscriber should be available.", subscriber, handler.context.getSubscriber());
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        eventBus.register(subscriber);
        eventBus.post(EVENT);
    
        assertEquals("Cause should be available.", exception, handler.exception);
        assertEquals("EventBus should be available.", eventBus, handler.context.getEventBus());
        assertEquals("Event should be available.", EVENT, handler.context.getEvent());
        assertEquals("Subscriber should be available.", subscriber, handler.context.getSubscriber());
        assertEquals(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/eventbus/EventBus.java

          }
        }
    
        private static Logger logger(SubscriberExceptionContext context) {
          return Logger.getLogger(EventBus.class.getName() + "." + context.getEventBus().identifier());
        }
    
        private static String message(SubscriberExceptionContext context) {
          Method method = context.getSubscriberMethod();
          return "Exception thrown by subscriber method "
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Aug 25 16:37:57 GMT 2021
    - 12.8K bytes
    - Viewed (0)
Back to top