Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.notificationconfiguration
Class NotificationConfigurationActivator

java.lang.Object
  extended by net.java.sip.communicator.plugin.notificationconfiguration.NotificationConfigurationActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class NotificationConfigurationActivator
extends Object
implements org.osgi.framework.BundleActivator

The BundleActivator of the AudioConfiguration plugin.

Author:
Alexandre Maillard

Field Summary
static org.osgi.framework.BundleContext bundleContext
          OSGi bundle context.
 
Constructor Summary
NotificationConfigurationActivator()
           
 
Method Summary
static AudioNotifierService getAudioNotifierService()
          Returns the AudioService obtained from the bundle context.
static ConfigurationService getConfigurationService()
          Returns a reference to the ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.
static NotificationService getNotificationService()
          Returns the NotificationService obtained from the bundle context.
 void start(org.osgi.framework.BundleContext bc)
          Starts this bundle and adds the AudioConfigurationConfigForm contained in it to the configuration window obtained from the UIService.
 void stop(org.osgi.framework.BundleContext bc)
          Stops this bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundleContext

public static org.osgi.framework.BundleContext bundleContext
OSGi bundle context.

Constructor Detail

NotificationConfigurationActivator

public NotificationConfigurationActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws Exception
Starts this bundle and adds the AudioConfigurationConfigForm contained in it to the configuration window obtained from the UIService.

Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws Exception
Stops this bundle.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
Exception

getAudioNotifierService

public static AudioNotifierService getAudioNotifierService()
Returns the AudioService obtained from the bundle context.

Returns:
the AudioService obtained from the bundle context

getNotificationService

public static NotificationService getNotificationService()
Returns the NotificationService obtained from the bundle context.

Note: No caching of the returned value is made available. Clients interested in bringing down the penalties imposed by acquiring the value in question should provide it by themselves.

Returns:
the NotificationService obtained from the bundle context

getConfigurationService

public static ConfigurationService getConfigurationService()
Returns a reference to the ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the ConfigurationService.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.