1.0.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.0.0

Field Summary
protected  NotificationListener notificationListener
          Define the notification listener (NotificationListener) 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)
          Constructs an instance of this class from the specified notification listener and topics parameters.
 
Method Summary
 void addTopics(java.lang.String[] externalKeys)
          Add topics with the specified external keys parameter.
 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)
          Handle event with the specified event parameter.
 void setServiceRegistration(org.osgi.framework.ServiceRegistration serviceRegistration)
          Sets the service registration value.
 void setTopics(java.lang.String[] topics)
          Sets the topics value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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)
Constructs an instance of this class from the specified notification listener and topics parameters. The notification listener (NotificationListener) parameter. The topics (String[]) parameter.

Parameters:
notificationListener - The notification listener (NotificationListener) parameter.
topics - The topics (String[]) parameter.
Method Detail

addTopics

public void addTopics(java.lang.String[] externalKeys)
Add topics with the specified external keys parameter. The external keys (String[]) parameter.

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)
Handle event with the specified event parameter. The event (Event) parameter.

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

setServiceRegistration

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

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

setTopics

public void setTopics(java.lang.String[] topics)
Sets the topics value. The topics (String[]) parameter.

Parameters:
topics - The topics (String[]) parameter.
See Also:
addTopics(String[]), getTopics()

1.0.0

Copyright (c) 1999, 2007 IBM