aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/notification/NotificationActivator.java
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2008-12-20 00:08:53 +0000
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2008-12-20 00:08:53 +0000
commit2e83c45aa27145fe587fceae1dfa3f1ac2f77046 (patch)
tree4becc08475cce8174f76f87e6d9c73f474fe98a9 /src/net/java/sip/communicator/impl/notification/NotificationActivator.java
parent3c911f558fd4f557323cbd9fdb2f10fb3d037a5c (diff)
downloadjitsi-2e83c45aa27145fe587fceae1dfa3f1ac2f77046.zip
jitsi-2e83c45aa27145fe587fceae1dfa3f1ac2f77046.tar.gz
jitsi-2e83c45aa27145fe587fceae1dfa3f1ac2f77046.tar.bz2
- Delays the creation of the Options dialog and the loading of the ConfigurationForm implementations (which get listed in the Options dialog).
- Spares a couple of ImageIcon allocations. - Removes unused fields and fixes raw-type warnings in the files touched by the other changes.
Diffstat (limited to 'src/net/java/sip/communicator/impl/notification/NotificationActivator.java')
-rw-r--r--src/net/java/sip/communicator/impl/notification/NotificationActivator.java17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/net/java/sip/communicator/impl/notification/NotificationActivator.java b/src/net/java/sip/communicator/impl/notification/NotificationActivator.java
index 45095ae..a98ca6b 100644
--- a/src/net/java/sip/communicator/impl/notification/NotificationActivator.java
+++ b/src/net/java/sip/communicator/impl/notification/NotificationActivator.java
@@ -23,13 +23,11 @@ import org.osgi.framework.*;
public class NotificationActivator
implements BundleActivator
{
- private Logger logger = Logger.getLogger(NotificationActivator.class);
-
+ private final Logger logger = Logger.getLogger(NotificationActivator.class);
+
private static BundleContext bundleContext;
private static ConfigurationService configService;
-
- private NotificationServiceImpl notificationService;
private static AudioNotifierService audioNotifierService;
@@ -41,15 +39,14 @@ public class NotificationActivator
try {
// Create the notification service implementation
- this.notificationService = new NotificationServiceImpl();
+ NotificationService notificationService =
+ new NotificationServiceImpl();
logger.info("Notification Service...[ STARTED ]");
- bundleContext.registerService(
- NotificationService.class.getName(),
- this.notificationService,
- null);
-
+ bundleContext.registerService(NotificationService.class.getName(),
+ notificationService, null);
+
logger.info("Notification Service ...[REGISTERED]");
logger.logEntry();