();
properties.put( ConfigurationForm.FORM_TYPE,
ConfigurationForm.GENERAL_TYPE);
bundleContext
.registerService(
ConfigurationForm.class.getName(),
new LazyConfigurationForm(
"net.java.sip.communicator.plugin.notificationconfiguration.NotificationConfigurationPanel",
getClass().getClassLoader(),
"plugin.notificationconfig.PLUGIN_ICON",
"service.gui.EVENTS",
30),
properties);
if (logger.isTraceEnabled())
logger.trace("Notification Configuration: [ STARTED ]");
}
/**
* Stops this bundle.
*/
public void stop(BundleContext bc)
throws Exception
{
}
/**
* Returns the AudioService obtained from the bundle
* context.
* @return the AudioService obtained from the bundle
* context
*/
public static AudioNotifierService getAudioNotifierService()
{
if(audioService == null)
{
audioService
= ServiceUtils.getService(
bundleContext,
AudioNotifierService.class);
}
return audioService;
}
/**
* 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.
*
*
* @return the NotificationService obtained from the bundle context
*/
public static NotificationService getNotificationService()
{
return
ServiceUtils.getService(bundleContext, NotificationService.class);
}
}