Interface LocaleProvider

All Known Subinterfaces:
All Known Implementing Classes:
ActionSupport, DefaultActionSupport, DelegatingValidatorContext, DelegatingValidatorContext.ActionContextLocaleProvider, VisitorFieldValidator.AppendingValidatorContext

public interface LocaleProvider

Indicates that the implementing class can provide its own Locale.

This is useful for when an action may wish override the default locale. All that is needed is to implement this interface and return your own custom locale. The TextProvider interface uses this interface heavily for retrieving internationalized messages from resource bundles.

Jason Carreira

Method Summary
 Locale getLocale()
          Gets the provided locale.

Method Detail


Locale getLocale()
Gets the provided locale.

the locale.

Copyright © 2000-2009 Apache Software Foundation. All Rights Reserved.