Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.argdelegation
Class ArgDelegationActivator

java.lang.Object
  extended by net.java.sip.communicator.impl.argdelegation.ArgDelegationActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class ArgDelegationActivator
extends Object
implements org.osgi.framework.BundleActivator

Activates the ArgDelegationService and registers a URI delegation peer with the util package arg manager so that we would be notified when the application receives uri arguments.

Author:
Emil Ivov

Constructor Summary
ArgDelegationActivator()
           
 
Method Summary
static UIService getUIService()
          Returns a reference to an UIService implementation currently registered in the bundle context or null if no such implementation was found.
 void start(org.osgi.framework.BundleContext bc)
          Starts the arg delegation bundle and registers the delegationPeer with the util package URI manager.
 void stop(org.osgi.framework.BundleContext bc)
          Unsets the delegation peer instance that we set when we start this bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgDelegationActivator

public ArgDelegationActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws Exception
Starts the arg delegation bundle and registers the delegationPeer with the util package URI manager.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bc - a reference to the currently active bundle context.
Throws:
Exception - if starting the arg delegation bundle and registering the delegationPeer with the util package URI manager fails

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws Exception
Unsets the delegation peer instance that we set when we start this bundle.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bc - an instance of the currently valid bundle context.
Throws:
Exception - if unsetting the delegation peer instance that we set when we start this bundle fails

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.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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