public abstract class LibJitsi
extends java.lang.Object
The start()
method is to be called to initialize/start the use of
the library. Respectively, the stop()
method is to be called to
uninitialize/stop the use of the library (i.e. to release the resources
acquired by the library during its execution). The getXXXService()
methods may be called only after the start() method returns
successfully and before the stop() method is called.
The libjitsi library may be utilized both with and without OSGi. If the library detects during the execution of the start() method that (a) the LibJitsi class has been loaded as part of an OSGi Bundle and (b) successfully retrieves the associated BundleContext, it will look for the references to the implementations of the supported service classes in the retrieved BundleContext. Otherwise, the library will stand alone without relying on OSGi functionality. In the case of successful detection of OSGi, the library will not register the supported service class instances in the retrieved BundleContext.
Modifier | Constructor and Description |
---|---|
protected |
LibJitsi()
Initializes a new LibJitsi instance.
|
Modifier and Type | Method and Description |
---|---|
static AudioNotifierService |
getAudioNotifierService()
Gets the AudioNotifierService instance.
|
static ConfigurationService |
getConfigurationService()
Gets the ConfigurationService instance.
|
static FileAccessService |
getFileAccessService()
Gets the FileAccessService instance.
|
static MediaService |
getMediaService()
Gets the MediaService instance.
|
static PacketLoggingService |
getPacketLoggingService()
Gets the PacketLoggingService instance.
|
static ResourceManagementService |
getResourceManagementService()
Gets the ResourceManagementService instance.
|
protected abstract <T> T |
getService(java.lang.Class<T> serviceClass)
Gets a service of a specific type associated with this implementation of
the libjitsi library.
|
static void |
start()
Starts/initializes the use of the libjitsi library.
|
(package private) static void |
start(java.lang.Object context)
Starts/initializes the use of the libjitsi library.
|
static void |
stop()
Stops/uninitializes the use of the libjitsi library.
|
public static AudioNotifierService getAudioNotifierService()
public static ConfigurationService getConfigurationService()
public static FileAccessService getFileAccessService()
public static MediaService getMediaService()
public static PacketLoggingService getPacketLoggingService()
public static ResourceManagementService getResourceManagementService()
public static void start()
static void start(java.lang.Object context)
context
- an Object, if any, which represents a context in
which the libjitsi library is being started and is to be
executed. If non-null, a LibJitsi implementation which
accepts it will be used. For example, BundleContext may be
specified in which case an OSGi-aware LibJitsi implementation
will be used.public static void stop()
protected abstract <T> T getService(java.lang.Class<T> serviceClass)
serviceClass
- the type of the service to be retrieved
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.