public abstract class AbstractResourceBundleNlsTemplateResolver extends AbstractNlsTemplateResolver
NlsTemplateResolver
interface. internationalized message using NlsReversedResourceBundle. With
that key and the name of the according ResourceBundle it is possible to create the
according NlsTemplate. lookup for a regular
bundle with the same name. NlsObjects by injecting
itself into the NlsFormatterManager used by the
resolved templates. NlsMessage,
ResourceBundleCDI_NAME, CLASSPATH_NLS_BUNDLE| Constructor and Description |
|---|
AbstractResourceBundleNlsTemplateResolver()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected NlsTemplate |
resolveTemplate(NlsReversedResourceBundle reversedBundle,
String internationalizedMessage)
|
NlsTemplate |
resolveTemplate(String internationalizedMessage,
NlsReversedResourceBundle... bundles)
|
doInitialize, doInitialized, getInitializationState, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveTemplatepublic AbstractResourceBundleNlsTemplateResolver()
protected NlsTemplate resolveTemplate(NlsReversedResourceBundle reversedBundle, String internationalizedMessage)
reversedBundle - is the resource-bundle that potentially declare the
internationalizedMessage.internationalizedMessage - is the message for which the NlsTemplate is required.NlsTemplate or null if the
internationalizedMessage is NOT declared in resourceBundle.public NlsTemplate resolveTemplate(String internationalizedMessage, NlsReversedResourceBundle... bundles)
internationalizedMessage - is the message for which the NlsTemplate is required.bundles - are the reversed bundles that potentially declare the
internationalizedMessage.NlsTemplate or null if the
internationalizedMessage is NOT declared in resourceBundle.Copyright © 2001–2015 mmm-Team. All rights reserved.