Class MockEventAdmin
- java.lang.Object
-
- org.apache.sling.testing.mock.osgi.MockEventAdmin
-
- All Implemented Interfaces:
org.osgi.service.event.EventAdmin
public final class MockEventAdmin extends Object implements org.osgi.service.event.EventAdmin
Mock implementation ofEventAdmin
. FromEventConstants
currently onlyEventConstants.EVENT_TOPIC
is supported.
-
-
Constructor Summary
Constructors Constructor Description MockEventAdmin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(org.osgi.service.component.ComponentContext componentContext)
protected void
bindEventHandler(org.osgi.service.event.EventHandler eventHandler, Map<String,Object> props)
protected void
deactivate(org.osgi.service.component.ComponentContext componentContext)
void
postEvent(org.osgi.service.event.Event event)
void
sendEvent(org.osgi.service.event.Event event)
protected void
unbindEventHandler(org.osgi.service.event.EventHandler eventHandler, Map<String,Object> props)
-
-
-
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 interfaceorg.osgi.service.event.EventAdmin
-
sendEvent
public void sendEvent(org.osgi.service.event.Event event)
- Specified by:
sendEvent
in interfaceorg.osgi.service.event.EventAdmin
-
bindEventHandler
protected void bindEventHandler(org.osgi.service.event.EventHandler eventHandler, Map<String,Object> props)
-
-