Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.callhistory
Class CallHistoryActivator

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

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

Activates the CallHistoryService.

Author:
Damian Minkov, Yana Stamcheva

Field Summary
static org.osgi.framework.BundleContext bundleContext
          The bundle context.
 
Constructor Summary
CallHistoryActivator()
           
 
Method Summary
static CallHistoryService getCallHistoryService()
          Returns the instance of CallHistoryService created in this activator.
static Map<Object,ProtocolProviderFactory> getProtocolProviderFactories()
          Returns all ProtocolProviderFactorys obtained from the bundle context.
static ResourceManagementService getResources()
          Returns the ResourceManagementService, through which we will access all resources.
 void start(org.osgi.framework.BundleContext bc)
          Initialize and start call history
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stops this bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundleContext

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

Constructor Detail

CallHistoryActivator

public CallHistoryActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws Exception
Initialize and start call history

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bc - the BundleContext
Throws:
Exception - if initializing and starting call history fails

stop

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

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - the BundleContext
Throws:
Exception - if the stop operation goes wrong

getCallHistoryService

public static CallHistoryService getCallHistoryService()
Returns the instance of CallHistoryService created in this activator.

Returns:
the instance of CallHistoryService created in this activator

getResources

public static ResourceManagementService getResources()
Returns the ResourceManagementService, through which we will access all resources.

Returns:
the ResourceManagementService, through which we will access all resources.

getProtocolProviderFactories

public static Map<Object,ProtocolProviderFactory> getProtocolProviderFactories()
Returns all ProtocolProviderFactorys obtained from the bundle context.

Returns:
all ProtocolProviderFactorys obtained from the bundle context

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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