SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol
Class AccountManagerUtils

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.AccountManagerUtils

public final class AccountManagerUtils
extends Object

Provides utilities to aid the manipulation of AccountManager.

Author:
Lubomir Marinov

Method Summary
static void startBundleAndWaitStoredAccountsLoaded(org.osgi.framework.BundleContext bundleContextWithAccountManager, org.osgi.framework.Bundle bundleToStart, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

startBundleAndWaitStoredAccountsLoaded

public static void startBundleAndWaitStoredAccountsLoaded(org.osgi.framework.BundleContext bundleContextWithAccountManager,
                                                          org.osgi.framework.Bundle bundleToStart,
                                                          String protocolNameToWait)
                                                   throws org.osgi.framework.BundleException,
                                                          InterruptedException
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.

Parameters:
bundleContextWithAccountManager - the BundleContext in which an AccountManager service is registered
bundleToStart - the Bundle to be started
protocolNameToWait - the protocol name of a ProtocolProviderFactory to wait the end of the loading of the stored accounts for
Throws:
org.osgi.framework.BundleException
InterruptedException - if any thread interrupted the current thread before or while the current thread was waiting for the loading of the stored accounts

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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