public class ReconnectPluginActivator extends java.lang.Object implements org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener, NetworkConfigurationChangeListener, RegistrationStateChangeListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATLEAST_ONE_CONNECTION_PROP |
static java.lang.String |
NETWORK_NOTIFICATIONS
Network notifications event type.
|
Constructor and Description |
---|
ReconnectPluginActivator() |
Modifier and Type | Method and Description |
---|---|
void |
configurationChanged(ChangeEvent event)
Fired when a change has occurred in the computer network configuration.
|
static org.jitsi.service.configuration.ConfigurationService |
getConfigurationService()
Returns a reference to a ConfigurationService implementation currently
registered in the bundle context or null if no such implementation was
found.
|
static NotificationService |
getNotificationService()
Returns the NotificationService obtained from the bundle context.
|
static org.jitsi.service.resources.ResourceManagementService |
getResources()
Returns resource service.
|
static UIService |
getUIService()
Returns the UIService obtained from the bundle context.
|
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
The method is called by a
ProtocolProviderService
implementation whenever a change in the registration state of the
corresponding provider had occurred. |
void |
serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
When new protocol provider is registered we add needed listeners.
|
void |
start(org.osgi.framework.BundleContext bundleContext)
Starts this bundle.
|
void |
stop(org.osgi.framework.BundleContext bundleContext)
Stops this bundle.
|
public static final java.lang.String NETWORK_NOTIFICATIONS
public static final java.lang.String ATLEAST_ONE_CONNECTION_PROP
public void start(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
bundleContext
- the BundleContext in which this bundle is
to be startedjava.lang.Exception
- if anything goes wrong while starting this bundlepublic void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
bundleContext
- the BundleContext in which this bundle is
to be stoppedjava.lang.Exception
- if anything goes wrong while stopping this bundlepublic static UIService getUIService()
public static org.jitsi.service.resources.ResourceManagementService getResources()
public static org.jitsi.service.configuration.ConfigurationService getConfigurationService()
public static NotificationService getNotificationService()
public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged
in interface org.osgi.framework.ServiceListener
serviceEvent
- ServiceEventpublic void configurationChanged(ChangeEvent event)
configurationChanged
in interface NetworkConfigurationChangeListener
event
- the change event.public void registrationStateChanged(RegistrationStateChangeEvent evt)
ProtocolProviderService
implementation whenever a change in the registration state of the
corresponding provider had occurred.registrationStateChanged
in interface RegistrationStateChangeListener
evt
- the event describing the status change.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.