Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.resources
Class ResourceManagementServiceUtils

java.lang.Object
  extended by net.java.sip.communicator.service.resources.ResourceManagementServiceUtils

public final class ResourceManagementServiceUtils
extends Object

Author:
Lubomir Marinov

Method Summary
static Locale getLocale(String localeId)
          Constructs a new Locale instance from a specific locale identifier which can either be a two-letter language code or contain a two-letter language code and a two-letter country code in the form <language>_<country>.
static ResourceManagementService getService(org.osgi.framework.BundleContext bundleContext)
          Gets the ResourceManagementService instance registered in a specific BundleContext (if any).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocale

public static Locale getLocale(String localeId)
Constructs a new Locale instance from a specific locale identifier which can either be a two-letter language code or contain a two-letter language code and a two-letter country code in the form <language>_<country>.

Parameters:
localeId - the locale identifier describing the new Locale instance to be created
Returns:
a new Locale instance with language and country (if specified) matching the given locale identifier

getService

public static ResourceManagementService getService(org.osgi.framework.BundleContext bundleContext)
Gets the ResourceManagementService instance registered in a specific BundleContext (if any).

Parameters:
bundleContext - the BundleContext to be checked for a registered ResourceManagementService
Returns:
a ResourceManagementService instance registered in the specified BundleContext if any; otherwise, null

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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