aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/netaddr/NetaddrActivator.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/impl/netaddr/NetaddrActivator.java')
-rw-r--r--src/net/java/sip/communicator/impl/netaddr/NetaddrActivator.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/net/java/sip/communicator/impl/netaddr/NetaddrActivator.java b/src/net/java/sip/communicator/impl/netaddr/NetaddrActivator.java
index e0b10df..f682d98 100644
--- a/src/net/java/sip/communicator/impl/netaddr/NetaddrActivator.java
+++ b/src/net/java/sip/communicator/impl/netaddr/NetaddrActivator.java
@@ -103,11 +103,10 @@ public class NetaddrActivator
{
if (configurationService == null)
{
- ServiceReference confReference
- = bundleContext.getServiceReference(
- ConfigurationService.class.getName());
configurationService
- = (ConfigurationService) bundleContext.getService(confReference);
+ = ServiceUtils.getService(
+ bundleContext,
+ ConfigurationService.class);
}
return configurationService;
}
@@ -125,12 +124,10 @@ public class NetaddrActivator
{
if (packetLoggingService == null)
{
- ServiceReference plReference
- = bundleContext.getServiceReference(
- PacketLoggingService.class.getName());
-
packetLoggingService
- = (PacketLoggingService)bundleContext.getService(plReference);
+ = ServiceUtils.getService(
+ bundleContext,
+ PacketLoggingService.class);
}
return packetLoggingService;
}