2008-09-10 1.1.0

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

java.lang.Object
  extended by org.eclipse.soda.dk.core.EscObject
      extended by org.eclipse.soda.dk.core.ConfigurableObject
          extended by org.eclipse.soda.dk.notification.NotificationResourceBase
              extended by org.eclipse.soda.dk.notification.NotificationBase
                  extended by org.eclipse.soda.dk.notification.event.admin.EventAdminHandler
All Implemented Interfaces:
ConfigurableService, org.osgi.service.event.EventHandler

public class EventAdminHandler
extends org.eclipse.soda.dk.notification.NotificationBase
implements org.osgi.service.event.EventHandler

Version:
1.1.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.soda.dk.notification.NotificationResourceBase
org.eclipse.soda.dk.notification.NotificationResourceBase.ConfigurationInformationProxy
 
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.
 
Fields inherited from class org.eclipse.soda.dk.notification.NotificationBase
broadcastCount, broadcastThreshold, broadcastThresholdCount, BroadcastThresholdDefault, level, levelMaximum, levelMinimum, notificationExtension, NotificationHost, NotificationId, notificationMonitor, notifyCount, notifyThreshold, notifyThresholdCount, NotifyThresholdDefault, prefixStatus
 
Fields inherited from class org.eclipse.soda.dk.notification.NotificationResourceBase
DefaultResourceBundle, NOTIFICATION_BROADCAST_EXCEEDED_RESOURCE, NOTIFICATION_BROADCAST_THRESHOLD_DEFAULT, NOTIFICATION_BROADCAST_THRESHOLD_KEY, NOTIFICATION_NOTIFY_EXCEEDED_RESOURCE, NOTIFICATION_NOTIFY_THRESHOLD_DEFAULT, NOTIFICATION_NOTIFY_THRESHOLD_KEY, NOTIFICATION_START_RESOURCE, NOTIFICATION_STOP_RESOURCE
 
Fields inherited from class org.eclipse.soda.dk.core.ConfigurableObject
BUNDLE_VERSION_PROPERTY
 
Fields inherited from class org.eclipse.soda.dk.core.EscObject
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, ID_NAME_KEY, INTEGER_TABLE, INTEGER_TABLE_SIZE, KEY_KEY, LOG_DEBUG, LOG_DEFAULT, LOG_ERROR, LOG_INFO, LOG_LEVEL_KEY, LOG_TRACE, LOG_WARNING, LONG_TABLE, LONG_TABLE_SIZE, PREFIX_KEY, READONLY_EMPTY_COLLECTION, READONLY_EMPTY_LIST, READONLY_EMPTY_MAP, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE, Unmodifiable
 
Constructor Summary
EventAdminHandler(NotificationListener notificationListener, java.lang.String[] topics)
           
EventAdminHandler(NotificationListener notificationListener, java.lang.String[] topics, NotificationExtensionService notificationExtension)
          Constructs an instance of this class from the specified notification listener, topics and notification extension parameters.
 
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)
           
 void setTopics(java.lang.String[] topics)
           
 
Methods inherited from class org.eclipse.soda.dk.notification.NotificationBase
addNotificationExtension, addNotificationMonitor, broadcast, broadcastStatus, exit, getBroadcastThreshold, getBroadcastThresholdDefault, getConfigurationInformation, getHost, getLevel, getLevelMaximum, getLevelMinimum, getNotificationExtension, getNotificationMonitor, getNotifyThreshold, getNotifyThresholdDefault, getResource, getStatusInfo, putConfigurationInformation, removeNotificationExtension, removeNotificationMonitor, setBroadcastThreshold, setBroadcastThresholdDefault, setConfigurationInformation, setLevel, setLevelMaximum, setLevelMinimum, setNotificationExtension, setNotificationMonitor, setNotifyThreshold, setNotifyThresholdDefault, setup, start, updateConfiguration, updateConfiguration
 
Methods inherited from class org.eclipse.soda.dk.notification.NotificationResourceBase
getErrorSeverity, getLogDetails2
 
Methods inherited from class org.eclipse.soda.dk.core.ConfigurableObject
createPropertiesFromHeaders, getConfigurationService, getId, setConfigurationService, setId, validateConfiguration
 
Methods inherited from class org.eclipse.soda.dk.core.EscObject
attemptRecoveryFromError, createDefaultLogService, createException, createException, createInteger, createIntegerTable, createLong, createLongTable, createNumber, format, getBoolean, getCurrentTimestamp, getDefaultLogService, getDefaultResource, getFloat, getIdName, getInt, getLoadLibraryName, getLogDetails, getLogDetails0, getLogDetails1, getLogDetails3, getLogDetails4, getLogDetails5, getLogDetails6, getLogDetails7, getLogLevel, getLogService, getLong, getObject, getOutputName, getReadOnlyEmptyCollection, getReadOnlyEmptyList, getReadOnlyEmptyMap, getSimpleClassName, getStaticBoolean, getStaticFloat, getStaticInt, getStaticLong, getStaticObject, getStaticString, getString, getTraceLevel, getVmLibraryVersion, handleError, handleError, handleError, handleError, handleErrorInternal, handleStaticError, handleStaticException, isBackward, isDebug, isLogging, isTrace, isUnmodifiable, loadService, log, log, log, report, report, report, report, report, report, reportError, reportSystemInfo, setBackward, setDebug, setDefaultLogService, setLogService, setTraceLevel, setUnmodifiable, shouldLog, sleep, startupEscStatic, toString, toStringConfigurationKeys, toStringInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

notificationListener

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


serviceRegistration

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


topics

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

Constructor Detail

EventAdminHandler

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

EventAdminHandler

public EventAdminHandler(NotificationListener notificationListener,
                         java.lang.String[] topics,
                         NotificationExtensionService notificationExtension)
Constructs an instance of this class from the specified notification listener, topics and notification extension parameters.

Parameters:
notificationListener - The notification listener (NotificationListener) parameter.
topics - The topics (String[]) parameter.
notificationExtension - The notification extension (NotificationExtensionService) parameter.
See Also:
EventAdminHandler(NotificationListener,String[])
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)
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-09-10 1.1.0

Copyright (c) 1999, 2008 IBM and others. See license in Legal section. OSGi Framework Version 3.4.0.v20080605-1900