Class SimpleLocalizationServiceImpl

java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.localization.SimpleLocalizationServiceImpl
All Implemented Interfaces:
org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, SimpleLocalizationService
Direct Known Subclasses:
DefaultLocalizationService

public class SimpleLocalizationServiceImpl extends org.apache.avalon.framework.logger.AbstractLogEnabled implements SimpleLocalizationService, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Initializable

This class is the single point of access to all localization resources. It caches different ResourceBundles for different Locales.

Usage example:

 
 SimpleLocalizationService ls = (SimpleLocalizationService) TurbineServices
     .getInstance().getService(SimpleLocalizationService.SERVICE_NAME);
 
 

Then call getString(String, Locale, String), or one of two methods to retrieve a ResourceBundle:

  • getBundle("MyBundleName")
  • getBundle("MyBundleName", Locale)
  • etc.
Version:
$Id: DefaultLocalizationService.java 535465 2007-05-05 06:58:06Z tv $ avalon.component name="localization" lifestyle="singleton" avalon.service type="org.apache.fulcrum.localization.SimpleLocalizationService"
Author:
Jonas Maurus, Jon S. Stevens, Frank Y. Kim, Daniel Rall, Leonard Richardson, Stephen McConnell, Thomas Vandahl