public class MessageHistoryActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Modifier and Type | Field and Description |
---|---|
(package private) static org.osgi.framework.BundleContext |
bundleContext
The BundleContext of the service.
|
Constructor and Description |
---|
MessageHistoryActivator() |
Modifier and Type | Method and Description |
---|---|
static org.jitsi.service.configuration.ConfigurationService |
getConfigurationService()
Returns the ConfigurationService obtained from the bundle
context.
|
static MetaContactListService |
getContactListService()
Returns the MetaContactListService obtained from the bundle
context.
|
static MessageHistoryServiceImpl |
getMessageHistoryService()
Returns the MessageHistoryService registered to the bundle
context.
|
static org.jitsi.service.resources.ResourceManagementService |
getResources()
Returns the ResourceManagementService, through which we will
access all resources.
|
void |
start(org.osgi.framework.BundleContext bc)
Initialize and start message history
|
void |
stop(org.osgi.framework.BundleContext bundleContext)
Stops this bundle.
|
static org.osgi.framework.BundleContext bundleContext
public void start(org.osgi.framework.BundleContext bc) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
bc
- the BundleContextjava.lang.Exception
- if initializing and starting message history service
failspublic void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
bundleContext
- the BundleContextjava.lang.Exception
- if the stop operation goes wrongpublic static MetaContactListService getContactListService()
public static MessageHistoryServiceImpl getMessageHistoryService()
public static org.jitsi.service.resources.ResourceManagementService getResources()
public static org.jitsi.service.configuration.ConfigurationService getConfigurationService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.