public class ProtocolProviderActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
BundleActivator
for the purposes of
protocol.jar/protocol.provider.manifest.mf and in order to register and start
services independent of the specifics of a particular protocol.Constructor and Description |
---|
ProtocolProviderActivator() |
Modifier and Type | Method and Description |
---|---|
static AccountManager |
getAccountManager()
Get the AccountManager of the protocol.
|
static org.osgi.framework.BundleContext |
getBundleContext()
Returns OSGI bundle context.
|
static CalendarService |
getCalendarService()
Gets the
CalendarService to be used by the classes
in the bundle represented by ProtocolProviderActivator . |
static org.jitsi.service.configuration.ConfigurationService |
getConfigurationService()
Gets the
ConfigurationService to be used by the classes in
the bundle represented by ProtocolProviderActivator . |
static ProtocolProviderFactory |
getProtocolProviderFactory(java.lang.String protocolName)
Returns a ProtocolProviderFactory for a given protocol
provider.
|
static java.util.List<ProtocolProviderService> |
getProtocolProviders()
Returns all protocol providers currently registered.
|
static org.jitsi.service.resources.ResourceManagementService |
getResourceService()
Gets the
ResourceManagementService to be used by the classes
in the bundle represented by ProtocolProviderActivator . |
void |
start(org.osgi.framework.BundleContext bundleContext)
Registers a new
AccountManagerImpl instance as an
AccountManager service and starts a new
SingleCallInProgressPolicy instance to ensure that only one
of the Call s accessible in the BundleContext
in which this activator is to execute will be in progress and the others
will automatically be put on hold. |
void |
stop(org.osgi.framework.BundleContext bundleContext)
Unregisters the
AccountManagerImpl instance registered as an
AccountManager service in start(BundleContext) and
stops the SingleCallInProgressPolicy started there as well. |
public static org.jitsi.service.configuration.ConfigurationService getConfigurationService()
ConfigurationService
to be used by the classes in
the bundle represented by ProtocolProviderActivator
.ConfigurationService
to be used by the classes
in the bundle represented by
ProtocolProviderActivator
public static org.jitsi.service.resources.ResourceManagementService getResourceService()
ResourceManagementService
to be used by the classes
in the bundle represented by ProtocolProviderActivator
.ResourceManagementService
to be used by the
classes in the bundle represented by
ProtocolProviderActivator
public static CalendarService getCalendarService()
CalendarService
to be used by the classes
in the bundle represented by ProtocolProviderActivator
.CalendarService
to be used by the
classes in the bundle represented by
ProtocolProviderActivator
public static ProtocolProviderFactory getProtocolProviderFactory(java.lang.String protocolName)
protocolName
- the name of the protocol, which factory we're
looking forpublic void start(org.osgi.framework.BundleContext bundleContext)
AccountManagerImpl
instance as an
AccountManager
service and starts a new
SingleCallInProgressPolicy
instance to ensure that only one
of the Call
s accessible in the BundleContext
in which this activator is to execute will be in progress and the others
will automatically be put on hold.start
in interface org.osgi.framework.BundleActivator
bundleContext
- the BundleContext
in which the bundle
activation represented by this BundleActivator
executespublic void stop(org.osgi.framework.BundleContext bundleContext)
AccountManagerImpl
instance registered as an
AccountManager
service in start(BundleContext)
and
stops the SingleCallInProgressPolicy
started there as well.stop
in interface org.osgi.framework.BundleActivator
bundleContext
- the BundleContext
in which the bundle
activation represented by this BundleActivator
executespublic static java.util.List<ProtocolProviderService> getProtocolProviders()
public static AccountManager getAccountManager()
public static org.osgi.framework.BundleContext getBundleContext()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.