public abstract class AbstractCompositeResourceBundleBuilder extends Object implements CompositeResourceBundleBuilder
Modifier and Type | Field and Description |
---|---|
protected static String |
ERROR_BASENAME_BLANK |
protected static String |
ERROR_LOCALE_NULL |
Constructor and Description |
---|
AbstractCompositeResourceBundleBuilder() |
Modifier and Type | Method and Description |
---|---|
ResourceBundle |
create(String basename) |
ResourceBundle |
create(String basename,
Locale locale) |
protected abstract void |
initialize() |
protected abstract Collection<ResourceBundle> |
loadBundlesFor(String basename) |
protected static final String ERROR_BASENAME_BLANK
protected static final String ERROR_LOCALE_NULL
public AbstractCompositeResourceBundleBuilder()
@Nonnull public ResourceBundle create(@Nonnull String basename)
create
in interface CompositeResourceBundleBuilder
@Nonnull public ResourceBundle create(@Nonnull String basename, @Nonnull Locale locale)
create
in interface CompositeResourceBundleBuilder
protected abstract void initialize()
@Nonnull protected abstract Collection<ResourceBundle> loadBundlesFor(@Nonnull String basename)