Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.nimbuzzavatars
Class NimbuzzAvatarsActivator

java.lang.Object
  extended by net.java.sip.communicator.plugin.nimbuzzavatars.NimbuzzAvatarsActivator
All Implemented Interfaces:
CustomAvatarService, org.osgi.framework.BundleActivator

public class NimbuzzAvatarsActivator
extends Object
implements org.osgi.framework.BundleActivator, CustomAvatarService

OSGi bundle activator for the Nimbuzz custom avatars service.

Author:
Damian Minkov

Field Summary
(package private) static org.osgi.framework.BundleContext bundleContext
          The context.
 
Constructor Summary
NimbuzzAvatarsActivator()
           
 
Method Summary
 byte[] getAvatar(String address)
          Returns the avatar bytes for the given contact address.
 void start(org.osgi.framework.BundleContext bc)
          Starts this bundle.
 void stop(org.osgi.framework.BundleContext bc)
          Stops this bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundleContext

static org.osgi.framework.BundleContext bundleContext
The context.

Constructor Detail

NimbuzzAvatarsActivator

public NimbuzzAvatarsActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws Exception
Starts this bundle.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bc - the bundle context
Throws:
Exception - if something goes wrong

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws Exception
Stops this bundle.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bc - the bundle context
Throws:
Exception - if something goes wrong

getAvatar

public byte[] getAvatar(String address)
Returns the avatar bytes for the given contact address.

Specified by:
getAvatar in interface CustomAvatarService
Parameters:
address - the address to search for its avatar.
Returns:
image bytes.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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