public final class AccountManagerUtils
extends java.lang.Object
AccountManager
.Modifier and Type | Method and Description |
---|---|
static void |
startBundleAndWaitStoredAccountsLoaded(org.osgi.framework.BundleContext bundleContextWithAccountManager,
org.osgi.framework.Bundle bundleToStart,
java.lang.String protocolNameToWait)
Starts a specific
Bundle and waits for the
AccountManager available in a specific
BundleContext to load the stored accounts of a
ProtocolProviderFactory with a specific protocol name. |
public static void startBundleAndWaitStoredAccountsLoaded(org.osgi.framework.BundleContext bundleContextWithAccountManager, org.osgi.framework.Bundle bundleToStart, java.lang.String protocolNameToWait) throws org.osgi.framework.BundleException, java.lang.InterruptedException
Bundle
and waits for the
AccountManager
available in a specific
BundleContext
to load the stored accounts of a
ProtocolProviderFactory
with a specific protocol name.bundleContextWithAccountManager
- the BundleContext
in which an
AccountManager
service is registeredbundleToStart
- the Bundle
to be startedprotocolNameToWait
- the protocol name of a ProtocolProviderFactory
to
wait the end of the loading of the stored accounts fororg.osgi.framework.BundleException
java.lang.InterruptedException
- if any thread interrupted the current thread before or while
the current thread was waiting for the loading of the stored
accounts
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.