public class HandlerTaskImpl extends Object implements HandlerTask
Constructor and Description |
---|
HandlerTaskImpl(org.osgi.framework.ServiceReference eventHandlerRef,
org.osgi.service.event.Event event,
BlacklistingHandlerTasks handlerTasks)
Construct a delivery task for the given service and event.
|
Modifier and Type | Method and Description |
---|---|
void |
blackListHandler()
Blacklist the handler.
|
void |
execute()
Deliver the event to the handler.
|
boolean |
finished()
Is the delivery finished
|
String |
getHandlerClassName()
Return the class name of the handler
|
public HandlerTaskImpl(org.osgi.framework.ServiceReference eventHandlerRef, org.osgi.service.event.Event event, BlacklistingHandlerTasks handlerTasks)
eventHandlerRef
- The servicereference of the handlerevent
- The event to deliverhandlerTasks
- Used to blacklist the service or get the service object
for the referencepublic String getHandlerClassName()
HandlerTask
getHandlerClassName
in interface HandlerTask
HandlerTask.getHandlerClassName()
public void execute()
HandlerTask
execute
in interface HandlerTask
HandlerTask.execute()
public void blackListHandler()
HandlerTask
blackListHandler
in interface HandlerTask
HandlerTask.blackListHandler()
public boolean finished()
HandlerTask
finished
in interface HandlerTask
HandlerTask.finished()
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.