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. FromEventConstantscurrently onlyEventConstants.EVENT_TOPICis supported.
-
-
Constructor Summary
Constructors Constructor Description MockEventAdmin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate(org.osgi.service.component.ComponentContext componentContext)protected voidbindEventHandler(org.osgi.service.event.EventHandler eventHandler, Map<String,Object> props)protected voiddeactivate(org.osgi.service.component.ComponentContext componentContext)voidpostEvent(org.osgi.service.event.Event event)voidsendEvent(org.osgi.service.event.Event event)protected voidunbindEventHandler(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:
postEventin interfaceorg.osgi.service.event.EventAdmin
-
sendEvent
public void sendEvent(org.osgi.service.event.Event event)
- Specified by:
sendEventin interfaceorg.osgi.service.event.EventAdmin
-
bindEventHandler
protected void bindEventHandler(org.osgi.service.event.EventHandler eventHandler, Map<String,Object> props)
-
-