Class MockEventAdmin

  • All Implemented Interfaces:
    org.osgi.service.event.EventAdmin

    public final class MockEventAdmin
    extends Object
    implements org.osgi.service.event.EventAdmin
    Mock implementation of EventAdmin. From EventConstants currently only EventConstants.EVENT_TOPIC is supported.
    • Constructor Detail

      • MockEventAdmin

        public MockEventAdmin()
    • Method Detail

      • activate

        protected void activate​(org.osgi.service.component.ComponentContext componentContext)
      • deactivate

        protected void deactivate​(org.osgi.service.component.ComponentContext componentContext)
      • postEvent

        public void postEvent​(org.osgi.service.event.Event event)
        Specified by:
        postEvent in interface org.osgi.service.event.EventAdmin
      • sendEvent

        public void sendEvent​(org.osgi.service.event.Event event)
        Specified by:
        sendEvent in interface org.osgi.service.event.EventAdmin
      • bindEventHandler

        protected void bindEventHandler​(org.osgi.service.event.EventHandler eventHandler,
                                        Map<String,​Object> props)
      • unbindEventHandler

        protected void unbindEventHandler​(org.osgi.service.event.EventHandler eventHandler,
                                          Map<String,​Object> props)