01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.xwork;
06:
07: import java.util.Locale;
08:
09: /**
10: * Indicates that the implementing class can provide its own {@link Locale}. This
11: * is useful for when an action may wish override the default locale. All that is
12: * needed is to implement this interface and return your own custom locale.
13: * The {@link TextProvider} interface uses this interface heavily for retrieving
14: * internationalized messages from resource bundles.
15: *
16: * @author Jason Carreira
17: * Date: Oct 29, 2003 9:11:22 PM
18: */
19: public interface LocaleProvider {
20:
21: Locale getLocale();
22: }
|