net.sf.mmm.util.nls.api
Interface NlsTemplateResolver

All Known Implementing Classes:
AbstractNlsTemplateResolver, AbstractResourceBundleNlsTemplateResolver, DefaultNlsTemplateResolver, NlsTemplateResolverImpl, NoTemplateResolver

@ComponentSpecification
public interface NlsTemplateResolver

This is the callback interface for translating a text-message to a Locale-specific language.

Since:
1.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
static String CLASSPATH_NLS_BUNDLE
          The classpath of a textual file containing the full qualified name(s) of one or multiple NLS-bundle(s).
 
Method Summary
 NlsTemplate resolveTemplate(String internationalizedMessage)
          This method is used to create the NlsTemplate from information that is found by the given internationalizedMessage.
 

Field Detail

CLASSPATH_NLS_BUNDLE

static final String CLASSPATH_NLS_BUNDLE
The classpath of a textual file containing the full qualified name(s) of one or multiple NLS-bundle(s).
There can be arbitrary implementations of NlsTemplateResolver. However the default implementation will use the context-class-loader to for this lookup.

See Also:
Constant Field Values
Method Detail

resolveTemplate

NlsTemplate resolveTemplate(String internationalizedMessage)
This method is used to create the NlsTemplate from information that is found by the given internationalizedMessage.
This may happen via a reverse lookup from AbstractResourceBundle(s).

Parameters:
internationalizedMessage - is the internationalized message.
Returns:
the according NlsTemplate or null if this implementation failed to resolve the according template.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.