public class DefaultCompositeResourceBundleBuilder extends AbstractCompositeResourceBundleBuilder
Modifier and Type | Field and Description |
---|---|
protected static String |
CLASS_SUFFIX |
protected static String |
PROPERTIES_SUFFIX |
ERROR_BASENAME_BLANK, ERROR_FILENAME_BLANK, ERROR_LOCALE_NULL, ERROR_RESOURCE_HANDLER_NULL, ERROR_SUFFIX_BLANK, resourceHandler
Constructor and Description |
---|
DefaultCompositeResourceBundleBuilder(ResourceHandler resourceHandler) |
Modifier and Type | Method and Description |
---|---|
protected Collection<ResourceBundle> |
loadBundleFromClass(String fileName) |
protected Collection<ResourceBundle> |
loadBundleFromProperties(String fileName) |
protected Collection<ResourceBundle> |
loadBundlesFor(String fileName) |
protected Class<?> |
loadClass(String className) |
protected ResourceBundle |
newInstance(Class<?> klass) |
create, create, getResourceAsURL, getResourceHandler, getResources
protected static final String PROPERTIES_SUFFIX
protected static final String CLASS_SUFFIX
@Inject public DefaultCompositeResourceBundleBuilder(@Nonnull ResourceHandler resourceHandler)
@Nonnull protected Collection<ResourceBundle> loadBundlesFor(@Nonnull String fileName)
loadBundlesFor
in class AbstractCompositeResourceBundleBuilder
@Nonnull protected Collection<ResourceBundle> loadBundleFromProperties(@Nonnull String fileName)
@Nonnull protected Collection<ResourceBundle> loadBundleFromClass(@Nonnull String fileName)
protected Class<?> loadClass(String className) throws ClassNotFoundException
ClassNotFoundException
protected ResourceBundle newInstance(Class<?> klass) throws IllegalAccessException, InstantiationException