org.apache.felix.eventadmin.impl.tasks
Class HandlerTaskImpl

java.lang.Object
  extended by org.apache.felix.eventadmin.impl.tasks.HandlerTaskImpl
All Implemented Interfaces:
HandlerTask

public class HandlerTaskImpl
extends Object
implements HandlerTask

An implementation of the HandlerTask interface.

Author:
Felix Project Team

Constructor Summary
HandlerTaskImpl(org.osgi.framework.ServiceReference eventHandlerRef, org.osgi.service.event.Event event, BlacklistingHandlerTasks handlerTasks)
          Construct a delivery task for the given service and event.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerTaskImpl

public HandlerTaskImpl(org.osgi.framework.ServiceReference eventHandlerRef,
                       org.osgi.service.event.Event event,
                       BlacklistingHandlerTasks handlerTasks)
Construct a delivery task for the given service and event.

Parameters:
eventHandlerRef - The servicereference of the handler
event - The event to deliver
handlerTasks - Used to blacklist the service or get the service object for the reference
Method Detail

getHandlerClassName

public String getHandlerClassName()
Description copied from interface: HandlerTask
Return the class name of the handler

Specified by:
getHandlerClassName in interface HandlerTask
See Also:
HandlerTask.getHandlerClassName()

execute

public void execute()
Description copied from interface: HandlerTask
Deliver the event to the handler.

Specified by:
execute in interface HandlerTask
See Also:
HandlerTask.execute()

blackListHandler

public void blackListHandler()
Description copied from interface: HandlerTask
Blacklist the handler.

Specified by:
blackListHandler in interface HandlerTask
See Also:
HandlerTask.blackListHandler()

finished

public boolean finished()
Description copied from interface: HandlerTask
Is the delivery finished

Specified by:
finished in interface HandlerTask
See Also:
HandlerTask.finished()


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.