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

Constructor Summary
NeomediaActivator()
           
 
Method Summary
static org.osgi.framework.BundleContext getBundleContext()
          Returns a reference to the bundle context that we were started with.
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 MediaServiceImpl getMediaServiceImpl()
          Gets the MediaService implementation instance registered by the neomedia bundle.
static NetworkAddressManagerService getNetworkAddressManagerService()
          Returns a reference to a NetworkAddressManagerService implementation currently registered in the bundle context or null if no such implementation was found.
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.
static UIService getUIService()
          Returns a reference to an UIService implementation currently registered in the bundle context or null if no such implementation was found.
static boolean isJmfRegistryDisableLoad()
          Gets the indicator which determines whether the loading of the JMF/FMJ Registry has been disabled.
 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

getBundleContext

public static org.osgi.framework.BundleContext getBundleContext()
Returns a reference to the bundle context that we were started with.

Returns:
a reference to the BundleContext instance that we were started with.

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

getNetworkAddressManagerService

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

Returns:
a currently valid implementation of the NetworkAddressManagerService .

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.

getUIService

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

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

isJmfRegistryDisableLoad

public static boolean isJmfRegistryDisableLoad()
Gets the indicator which determines whether the loading of the JMF/FMJ Registry has been disabled.

Returns:
true if the loading of the JMF/FMJ Registry has been disabled; otherwise, false

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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