2008-02-07 1.1.0

org.eclipse.soda.dk.notification.event.admin
Class EventAdminHandler

java.lang.Object
  extended by org.eclipse.soda.dk.notification.event.admin.EventAdminHandler
All Implemented Interfaces:
org.osgi.service.event.EventHandler

public class EventAdminHandler
extends java.lang.Object
implements org.osgi.service.event.EventHandler

Version:
1.1.0

Field Summary
protected  NotificationListener notificationListener
          Define the notification listener (NotificationListener) field.
protected static long NotifyThreshold
          Define the notify threshold (long) field.
protected  org.osgi.framework.ServiceRegistration serviceRegistration
          Define the service registration (ServiceRegistration) field.
protected  java.lang.String[] topics
          Define the topics (String[]) field.
 
Constructor Summary
EventAdminHandler(NotificationListener notificationListener, java.lang.String[] topics)
           
 
Method Summary
 void addTopics(java.lang.String[] externalKeys)
           
 org.osgi.framework.ServiceRegistration getServiceRegistration()
          Gets the service registration value.
 java.lang.String[] getTopics()
          Gets the topics (String[]) value.
 void handleEvent(org.osgi.service.event.Event event)
           
 void notify(org.osgi.service.event.Event event, java.util.Dictionary data)
          Notify with the specified event and data parameters.
 void setServiceRegistration(org.osgi.framework.ServiceRegistration serviceRegistration)
          Sets the service registration value.
 void setTopics(java.lang.String[] topics)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NotifyThreshold

protected static long NotifyThreshold
Define the notify threshold (long) field.


notificationListener

protected NotificationListener notificationListener
Define the notification listener (NotificationListener) field.


topics

protected java.lang.String[] topics
Define the topics (String[]) field.


serviceRegistration

protected org.osgi.framework.ServiceRegistration serviceRegistration
Define the service registration (ServiceRegistration) field.

Constructor Detail

EventAdminHandler

public EventAdminHandler(NotificationListener notificationListener,
                         java.lang.String[] topics)
Parameters:
notificationListener - The notification listener (NotificationListener) parameter.
topics - The topics (String[]) parameter.
Method Detail

addTopics

public void addTopics(java.lang.String[] externalKeys)
Parameters:
externalKeys - The external keys (String[]) parameter.
See Also:
getTopics(), setTopics(String[])

getServiceRegistration

public org.osgi.framework.ServiceRegistration getServiceRegistration()
Gets the service registration value.

Returns:
The service registration (ServiceRegistration) value.
See Also:
setServiceRegistration(ServiceRegistration)

getTopics

public java.lang.String[] getTopics()
Gets the topics (String[]) value.

Returns:
The topics (String[]) value.
See Also:
addTopics(String[]), setTopics(String[])

handleEvent

public void handleEvent(org.osgi.service.event.Event event)
Specified by:
handleEvent in interface org.osgi.service.event.EventHandler
Parameters:
event - The event (Event) parameter.

notify

public void notify(org.osgi.service.event.Event event,
                   java.util.Dictionary data)
Notify with the specified event and data parameters.

Parameters:
event - The event (Event) parameter.
data - The data (Dictionary) parameter.

setServiceRegistration

public void setServiceRegistration(org.osgi.framework.ServiceRegistration serviceRegistration)
Sets the service registration value. The service registration (ServiceRegistration) parameter. The service registration (ServiceRegistration) parameter.

Parameters:
serviceRegistration - The service registration (ServiceRegistration) parameter.
See Also:
getServiceRegistration()

setTopics

public void setTopics(java.lang.String[] topics)
Parameters:
topics - The topics (String[]) parameter.
See Also:
addTopics(String[]), getTopics()

2008-02-07 1.1.0

Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.3.1.R33x_v20070828