Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia
Class NeomediaActivator

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.NeomediaActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

Implements BundleActivator for the neomedia bundle.

Author:
Martin Andre, Emil Ivov, Lyubomir Marinov, Boris Grozev

Constructor Summary
NeomediaActivator()
           
 
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 a reference to a FileAccessService implementation currently registered in the bundle context or null if no such implementation was found.
static MediaConfigurationService getMediaConfiguration()
           
static MediaServiceImpl getMediaServiceImpl()
          Gets the MediaService implementation instance registered by the neomedia bundle.
static PacketLoggingService getPacketLogging()
          Returns a reference to the PacketLoggingService implementation currently registered in the bundle context or null if no such implementation was found.
static ResourceManagementService getResources()
          Gets the ResourceManagementService instance which represents the resources such as internationalized and localized text and images used by the neomedia bundle.
 void start(org.osgi.framework.BundleContext bundleContext)
          Starts the execution of the neomedia bundle in the specified context.
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stops the execution of the neomedia bundle in the specified context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeomediaActivator

public NeomediaActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws Exception
Starts the execution of the neomedia bundle in the specified context.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the context in which the neomedia bundle is to start executing
Throws:
Exception - if an error occurs while starting the execution of the neomedia bundle in the specified context

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws Exception
Stops the execution of the neomedia bundle in the specified context.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the context in which the neomedia bundle is to stop executing
Throws:
Exception - if an error occurs while stopping the execution of the neomedia bundle in the specified 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.

getFileAccessService

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

Returns:
a currently valid implementation of the FileAccessService .

getMediaServiceImpl

public static MediaServiceImpl getMediaServiceImpl()
Gets the MediaService implementation instance registered by the neomedia bundle.

Returns:
the MediaService implementation instance registered by the neomedia bundle

getMediaConfiguration

public static MediaConfigurationService getMediaConfiguration()

getResources

public static ResourceManagementService getResources()
Gets the ResourceManagementService instance which represents the resources such as internationalized and localized text and images used by the neomedia bundle.

Returns:
the ResourceManagementService instance which represents the resources such as internationalized and localized text and images used by the neomedia bundle

getPacketLogging

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

Returns:
a reference to a PacketLoggingService implementation currently registered in the bundle context or null if no such implementation was found.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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