to.etc.webapp.nls
Interface NlsMessageProvider

All Known Subinterfaces:
IBundle
All Known Implementing Classes:
BundleBase, BundleRef, BundleStack, NlsCachingMessageProvider, NlsMessageProviderList

public interface NlsMessageProvider

Something which can provide a message for a given code and locale.

Author:
Frits Jalvingh Created on Oct 10, 2006

Method Summary
 java.lang.String findMessage(java.util.Locale loc, java.lang.String code)
          Locate the specified key for the specified locale.
 

Method Detail

findMessage

@Nullable
java.lang.String findMessage(@Nonnull
                                      java.util.Locale loc,
                                      @Nonnull
                                      java.lang.String code)
Locate the specified key for the specified locale. This does fallback, meaning that if the exact locale is not matched it will try a less restrictive one, until the empty (default) locale has been reached. The first match is returned; if not even the empty locale returns a match this returns null.

Parameters:
loc -
code -
Returns: