public class DefaultCompositeResourceBundleBuilder extends AbstractCompositeResourceBundleBuilder
Modifier and Type | Field and Description |
---|---|
protected static String |
CLASS_SUFFIX |
protected Instantiator |
instantiator |
protected static String |
PROPERTIES_SUFFIX |
protected PropertiesReader |
propertiesReader |
protected ResourceBundleReader |
resourceBundleReader |
ERROR_BASENAME_BLANK, ERROR_FILENAME_BLANK, ERROR_LOCALE_NULL, ERROR_RESOURCE_HANDLER_NULL, ERROR_SUFFIX_BLANK, resourceHandler
Constructor and Description |
---|
DefaultCompositeResourceBundleBuilder(Instantiator instantiator,
ResourceHandler resourceHandler,
PropertiesReader propertiesReader,
ResourceBundleReader resourceBundleReader) |
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
protected final Instantiator instantiator
protected final PropertiesReader propertiesReader
protected final ResourceBundleReader resourceBundleReader
@Inject public DefaultCompositeResourceBundleBuilder(@Nonnull Instantiator instantiator, @Nonnull ResourceHandler resourceHandler, @Nonnull PropertiesReader propertiesReader, @Nonnull ResourceBundleReader resourceBundleReader)
@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