Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.loggingutils
Class LoggingUtilsActivator

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

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

Creates and registers logging config form.

Author:
Damian Minkov

Field Summary
(package private) static org.osgi.framework.BundleContext bundleContext
          The OSGI bundle context.
 
Constructor Summary
LoggingUtilsActivator()
           
 
Method Summary
static ConfigurationService getConfigurationService()
          Returns a reference to a ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.
static FileAccessService getFileAccessService()
          Returns the FileAccessService obtained from the bundle context.
static NotificationService getNotificationService()
          Returns the NotificationService obtained from the bundle context.
static PacketLoggingService getPacketLoggingService()
          Returns a reference to a PacketLoggingService implementation currently registered in the bundle context or null if no such implementation was found.
static ResourceManagementService getResourceService()
          Returns the ResourceManagementService obtained from the bundle context.
 void start(org.osgi.framework.BundleContext bundleContext)
          Creates and register logging configuration.
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stops the Logging utils bundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundleContext

static org.osgi.framework.BundleContext bundleContext
The OSGI bundle context.

Constructor Detail

LoggingUtilsActivator

public LoggingUtilsActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws Exception
Creates and register logging configuration.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - OSGI bundle context
Throws:
Exception - if error creating configuration.

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws Exception
Stops the Logging utils bundle

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the OSGI bundle context
Throws:
Exception

getResourceService

public static ResourceManagementService getResourceService()
Returns the ResourceManagementService obtained from the bundle context.

Returns:
the ResourceManagementService obtained from the bundle context

getConfigurationService

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

Returns:
a currently valid implementation of the ConfigurationService.

getPacketLoggingService

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

Returns:
a currently valid implementation of the PacketLoggingService.

getFileAccessService

public static FileAccessService getFileAccessService()
Returns the FileAccessService obtained from the bundle context.

Returns:
the FileAccessService obtained from the bundle context

getNotificationService

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

Returns:
the NotificationService obtained from the bundle context

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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