@Immutable public class BundleStack extends BundleBase implements IBundle
| Constructor and Description |
|---|
BundleStack(List<? extends NlsMessageProvider> reflist) |
BundleStack(NlsMessageProvider[] bundleStack) |
| Modifier and Type | Method and Description |
|---|---|
static BundleStack |
createStack(Class<?> clz)
Create a bundle stack for the specified class.
|
String |
findMessage(Locale loc,
String code)
Locate the specified key for the specified locale.
|
formatMessage, formatMessage, getString, getStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitformatMessage, getString, getStringpublic BundleStack(@Nonnull NlsMessageProvider[] bundleStack)
public BundleStack(@Nonnull List<? extends NlsMessageProvider> reflist)
@Nullable public static BundleStack createStack(Class<?> clz)
If no bundles are located at all this returns null.
This makes message bundles follow the same hierarchy as the classes itself, and allows classes that extend other classes to also "extend" the messages for the base class.
clz - public String findMessage(@Nonnull Locale loc, @Nonnull String code)
findMessage in interface NlsMessageProviderfindMessage in class BundleBaseCopyright © 2017 etc.to. All rights reserved.