1.0.0

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

java.lang.Object
  extended by org.eclipse.soda.dk.notification.event.admin.NotificationEventAdmin
All Implemented Interfaces:
NotificationService

public class NotificationEventAdmin
extends java.lang.Object
implements NotificationService

Version:
1.0.0

Field Summary
protected  org.osgi.framework.BundleContext bundleContext
          Define the bundle context (BundleContext) field.
protected  org.osgi.service.event.EventAdmin eventAdmin
          Define the event admin (EventAdmin) field.
protected  java.util.Hashtable notificationListeners
          Define the notification listener (NotificationListener) field.
 
Fields inherited from interface org.eclipse.soda.dk.notification.service.NotificationService
ERROR_EXTERNAL_KEY, EXCEPTION_DATA_KEY, EXECUTE_EXTERNAL_KEY, FACTORY_SERVICE_NAME, GET_EXTERNAL_KEY, MESSAGE_DATA_KEY, READ_EXTERNAL_KEY, SERVICE_NAME, SET_EXTERNAL_KEY, TIMESTAMP_DATA_KEY, TOPIC_DELIMITER, TOPIC_DELIMITER_STRING, TOPIC_WILDCARD, TOPIC_WILDCARD_STRING, TRIGGER_EXTERNAL_KEY, VALUE_DATA_KEY, VALUE_OLD_DATA_KEY, WRITE_EXTERNAL_KEY
 
Constructor Summary
NotificationEventAdmin()
          Constructs an instance of this class.
 
Method Summary
 void addData(java.util.Dictionary data)
          Add data with the specified data parameter.
 void broadcast(java.lang.String externalKey, java.util.Dictionary data)
          Broadcast with the specified external key and data parameters.
 org.osgi.framework.BundleContext getBundleContext()
          Gets the bundle context value.
 org.osgi.service.event.EventAdmin getEventAdmin()
          Gets the event admin value.
 void register(java.lang.String[] externalKeys, NotificationListener listener)
          Register with the specified external keys and listener parameters.
 void register(java.lang.String externalKey, NotificationListener listener)
          Register with the specified external key and listener parameters.
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
          Sets the bundle context value.
 void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
          Sets the event admin value.
 void unregister(NotificationListener listener)
          Unregister with the specified listener parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventAdmin

protected org.osgi.service.event.EventAdmin eventAdmin
Define the event admin (EventAdmin) field.


bundleContext

protected org.osgi.framework.BundleContext bundleContext
Define the bundle context (BundleContext) field.


notificationListeners

protected java.util.Hashtable notificationListeners
Define the notification listener (NotificationListener) field.

Constructor Detail

NotificationEventAdmin

public NotificationEventAdmin()
Constructs an instance of this class.

Method Detail

addData

public void addData(java.util.Dictionary data)
Add data with the specified data parameter. The data (Dictionary) parameter.

Parameters:
data - The data (Dictionary) parameter.

broadcast

public void broadcast(java.lang.String externalKey,
                      java.util.Dictionary data)
Broadcast with the specified external key and data parameters. The external key (String) parameter. The data (Object) parameter.

Specified by:
broadcast in interface NotificationService
Parameters:
externalKey - The external key (String) parameter.
data - The data (Dictionary) parameter.

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()
Gets the bundle context value.

Returns:
The bundle context (BundleContext) value.
See Also:
setBundleContext(BundleContext)

getEventAdmin

public org.osgi.service.event.EventAdmin getEventAdmin()
Gets the event admin value.

Returns:
The event admin (EventAdmin) value.
See Also:
NotificationEventAdmin(), setEventAdmin(EventAdmin)

register

public void register(java.lang.String externalKey,
                     NotificationListener listener)
Register with the specified external key and listener parameters. The external key (String) parameter. The listener (NotificationListener) parameter.

Specified by:
register in interface NotificationService
Parameters:
externalKey - The external key (String) parameter.
listener - The listener (NotificationListener) parameter.
See Also:
register(String[],NotificationListener)

register

public void register(java.lang.String[] externalKeys,
                     NotificationListener listener)
Register with the specified external keys and listener parameters. The external keys (String[]) parameter. The listener (NotificationListener) parameter.

Specified by:
register in interface NotificationService
Parameters:
externalKeys - The external keys (String[]) parameter.
listener - The listener (NotificationListener) parameter.
See Also:
register(String,NotificationListener)

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
Sets the bundle context value. The bundle context (BundleContext) parameter.

Parameters:
bundleContext - The bundle context (BundleContext) parameter.
See Also:
getBundleContext()

setEventAdmin

public void setEventAdmin(org.osgi.service.event.EventAdmin eventAdmin)
Sets the event admin value. The event admin (EventAdmin) parameter.

Parameters:
eventAdmin - The event admin (EventAdmin) parameter.
See Also:
NotificationEventAdmin(), getEventAdmin()

unregister

public void unregister(NotificationListener listener)
Unregister with the specified listener parameter. The listener (NotificationListener) parameter.

Specified by:
unregister in interface NotificationService
Parameters:
listener - The listener (NotificationListener) parameter.

1.0.0

Copyright (c) 1999, 2007 IBM