public class ArgDelegationPeerImpl extends java.lang.Object implements ArgDelegationPeer, org.osgi.framework.ServiceListener
Constructor and Description |
---|
ArgDelegationPeerImpl(org.osgi.framework.BundleContext bundleContext)
Creates an instance of this peer and scans bundleContext for all
existing UriHandler
|
Modifier and Type | Method and Description |
---|---|
void |
handleConcurrentInvocationRequest()
This method would simply bring the application on focus as it is called
when the user has tried to launch a second instance of SIP Communicator
while a first one was already running.
|
void |
handleUri(java.lang.String uriArg)
Relays uirArg to the corresponding handler or shows an error
message in case no handler has been registered for the corresponding
protocol.
|
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
Listens for UriHandlers that are registered in the bundle
context after we had started so that we could add them to the list
of currently known handlers.
|
public ArgDelegationPeerImpl(org.osgi.framework.BundleContext bundleContext)
bundleContext
- a reference to a currently valid instance of a
bundle context.public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged
in interface org.osgi.framework.ServiceListener
event
- the event containing the newly (un)registered service.public void handleUri(java.lang.String uriArg)
handleUri
in interface ArgDelegationPeer
uriArg
- the uri that we've been passed and that we'd like to
delegate to the corresponding provider.public void handleConcurrentInvocationRequest()
handleConcurrentInvocationRequest
in interface ArgDelegationPeer
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.