Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.provisioning
Class ProvisioningActivator

java.lang.Object
  extended by net.java.sip.communicator.plugin.provisioning.ProvisioningActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

Activator the provisioning system. It will gather provisioning URL depending on the configuration (DHCP, manual, ...), retrieve configuration file and push properties to the ConfigurationService.


Field Summary
(package private) static org.osgi.framework.BundleContext bundleContext
          The current BundleContext.
 
Constructor Summary
ProvisioningActivator()
           
 
Method Summary
static ConfigurationService getConfigurationService()
          Returns a reference to a ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.
static CredentialsStorageService getCredentialsStorageService()
          Returns a reference to a CredentialsStorageService implementation currently registered in the bundle context or null if no such implementation was found.
static NetworkAddressManagerService getNetworkAddressManagerService()
          Returns a reference to a NetworkAddressManagerService implementation currently registered in the bundle context or null if no such implementation was found.
static ProvisioningServiceImpl getProvisioningService()
          Returns a reference to a ProvisioningService implementation.
static ResourceManagementService getResourceService()
          Returns the ResourceManagementService obtained from the bundle context.
static UIService getUIService()
          Returns the UIService obtained from the bundle context.
 void start(org.osgi.framework.BundleContext bundleContext)
          Starts this bundle
 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

static org.osgi.framework.BundleContext bundleContext
The current BundleContext.

Constructor Detail

ProvisioningActivator

public ProvisioningActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws Exception
Starts this bundle

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - BundleContext
Throws:
Exception - if anything goes wrong during the start of the bundle

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 - BundleContext
Throws:
Exception - if anything goes wrong during the stop of the bundle

getUIService

public static UIService getUIService()
Returns the UIService obtained from the bundle context.

Returns:
the UIService obtained from the bundle context

getResourceService

public static ResourceManagementService getResourceService()
Returns the ResourceManagementService obtained from the bundle context.

Returns:
the ResourceManagementService obtained from the bundle context

getConfigurationService

public static ConfigurationService getConfigurationService()
Returns a reference to a ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the ConfigurationService.

getCredentialsStorageService

public static CredentialsStorageService getCredentialsStorageService()
Returns a reference to a CredentialsStorageService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the CredentialsStorageService.

getNetworkAddressManagerService

public static NetworkAddressManagerService getNetworkAddressManagerService()
Returns a reference to a NetworkAddressManagerService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the NetworkAddressManagerService.

getProvisioningService

public static ProvisioningServiceImpl getProvisioningService()
Returns a reference to a ProvisioningService implementation.

Returns:
a currently valid implementation of ProvisioningService

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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