org.jasig.portal.channels.adminnav
Class ResourceBundleResolver

java.lang.Object
  extended by org.jasig.portal.channels.adminnav.ResourceBundleResolver
All Implemented Interfaces:
ILabelResolver

Deprecated. All IChannel implementations should be migrated to portlets

@Deprecated
public class ResourceBundleResolver
extends Object
implements ILabelResolver

Provides an implementation of ILabelResolver that resolves labels from ResourceBundles. A classpath located, base resource bundle property file name like "/properties/adminNav" is passed in to the constructor. Based on the user's locale, files with that name plus locale identifiers plus ".properties" will be looked for for resolving lable names. For example, if a call to getLabel passed a locale object for "de_DE" then the resource bundle searched for would be "/properties/adminNav_de_DE.properties" followed by "/properties/adminNav_de.properties" followed by "/properties/adminNav.properties".

Author:
mboyd@sungardsct.com

Constructor Summary
ResourceBundleResolver(String bundleBase)
          Deprecated.  
 
Method Summary
 String getExternalForm()
          Deprecated. Return the bundle base used for this resolver.
 String getLabel(String labelId, Locale locale)
          Deprecated. Returns the localized label for the given label identifier and locale or null if one is not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleResolver

public ResourceBundleResolver(String bundleBase)
Deprecated. 
Method Detail

getLabel

public String getLabel(String labelId,
                       Locale locale)
Deprecated. 
Description copied from interface: ILabelResolver
Returns the localized label for the given label identifier and locale or null if one is not found.

Specified by:
getLabel in interface ILabelResolver
Returns:
String localized label

getExternalForm

public String getExternalForm()
Deprecated. 
Return the bundle base used for this resolver.

Specified by:
getExternalForm in interface ILabelResolver
Returns:
String reslver configuration
See Also:
ILabelResolver.getExternalForm()


Copyright © 2010 Jasig. All Rights Reserved.