org.apache.tapestry.l10n
Interface ResourceLocalizer

All Known Implementing Classes:
DefaultResourceLocalizer

public interface ResourceLocalizer

An interface that defines how to localize a particular resource. A default implementation will use Resource.getLocalization(java.util.Locale), but this interface (and associated chain of command configuration point) allows for alternative approaches to localizing a resource.

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
 org.apache.hivemind.Resource findLocalization(org.apache.hivemind.Resource rootResource, Locale locale)
          Finds and returns a localization of a root resource for the indicated locale.
 

Method Detail

findLocalization

org.apache.hivemind.Resource findLocalization(org.apache.hivemind.Resource rootResource,
                                              Locale locale)
Finds and returns a localization of a root resource for the indicated locale.

Parameters:
rootResource - the base resource for which a localization is needed
locale - the locale to find a localization for
Returns:
the localized version of the resource, or null if not found


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.