public class OtrActivator extends AbstractServiceDependentActivator implements org.osgi.framework.ServiceListener
Modifier and Type | Field and Description |
---|---|
static org.osgi.framework.BundleContext |
bundleContext
The
BundleContext of the OtrActivator . |
static org.jitsi.service.configuration.ConfigurationService |
configService
The
ConfigurationService of the OtrActivator . |
static java.lang.String |
OTR_DISABLED_PROP
A property used in configuration to disable the OTR plugin.
|
static java.lang.String |
OTR_MANDATORY_PROP
A property specifying whether private messaging should be made mandatory.
|
static org.jitsi.service.resources.ResourceManagementService |
resourceService
The
ResourceManagementService of the OtrActivator . |
static ScOtrEngineImpl |
scOtrEngine
The
ScOtrEngine of the OtrActivator . |
static ScOtrKeyManager |
scOtrKeyManager
The
ScOtrKeyManager of the OtrActivator . |
static UIService |
uiService
The
UIService of the OtrActivator . |
Constructor and Description |
---|
OtrActivator() |
Modifier and Type | Method and Description |
---|---|
static AccountID |
getAccountIDByUID(java.lang.String uid)
Gets an
AccountID by its UID. |
static java.util.List<AccountID> |
getAllAccountIDs()
Gets all the available accounts in SIP Communicator.
|
static MetaContactListService |
getContactListService()
Returns the MetaContactListService obtained from the bundle
context.
|
java.lang.Class<?> |
getDependentServiceClass()
The dependent class.
|
static MessageHistoryService |
getMessageHistoryService()
Gets the service giving access to message history.
|
void |
serviceChanged(org.osgi.framework.ServiceEvent serviceEvent) |
void |
setBundleContext(org.osgi.framework.BundleContext context)
The bundle context to use.
|
void |
start(java.lang.Object dependentService)
The dependent service is available and the bundle will start.
|
void |
stop(org.osgi.framework.BundleContext bc) |
start
public static org.osgi.framework.BundleContext bundleContext
BundleContext
of the OtrActivator
.public static org.jitsi.service.configuration.ConfigurationService configService
ConfigurationService
of the OtrActivator
. Can also be
obtained from the bundleContext
on demand, but we
add it here for convenience.public static final java.lang.String OTR_DISABLED_PROP
public static final java.lang.String OTR_MANDATORY_PROP
public static org.jitsi.service.resources.ResourceManagementService resourceService
ResourceManagementService
of the OtrActivator
. Can
also be obtained from the bundleContext
on demand,
but we add it here for convenience.public static ScOtrEngineImpl scOtrEngine
ScOtrEngine
of the OtrActivator
.public static ScOtrKeyManager scOtrKeyManager
ScOtrKeyManager
of the OtrActivator
.public static UIService uiService
UIService
of the OtrActivator
. Can also be obtained
from the bundleContext
on demand, but we add it here
for convenience.public static AccountID getAccountIDByUID(java.lang.String uid)
AccountID
by its UID.public static java.util.List<AccountID> getAllAccountIDs()
List
of AccountID
.public java.lang.Class<?> getDependentServiceClass()
getDependentServiceClass
in class AbstractServiceDependentActivator
public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged
in interface org.osgi.framework.ServiceListener
public void setBundleContext(org.osgi.framework.BundleContext context)
setBundleContext
in class AbstractServiceDependentActivator
context
- the context to set.public void start(java.lang.Object dependentService)
AbstractServiceDependentActivator
start
in class AbstractServiceDependentActivator
dependentService
- the service this activator is waiting.public void stop(org.osgi.framework.BundleContext bc) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
java.lang.Exception
public static MetaContactListService getContactListService()
public static MessageHistoryService getMessageHistoryService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.