@Named(value="class") public class ClassResourceBundleLoader extends AbstractResourceBundleLoader
Modifier and Type | Field and Description |
---|---|
protected static String |
CLASS_SUFFIX |
protected Instantiator |
instantiator |
protected ResourceBundleReader |
resourceBundleReader |
ERROR_FILENAME_BLANK, ERROR_RESOURCE_HANDLER_NULL, ERROR_SUFFIX_BLANK, resourceHandler
Constructor and Description |
---|
ClassResourceBundleLoader(Instantiator instantiator,
ResourceHandler resourceHandler,
ResourceBundleReader resourceBundleReader) |
Modifier and Type | Method and Description |
---|---|
Collection<ResourceBundle> |
load(String name) |
protected Class<?> |
loadClass(String className) |
protected ResourceBundle |
newInstance(Class<?> klass) |
getResourceAsURL, getResourceHandler, getResources
protected static final String CLASS_SUFFIX
protected final Instantiator instantiator
protected final ResourceBundleReader resourceBundleReader
@Inject public ClassResourceBundleLoader(@Nonnull Instantiator instantiator, @Nonnull ResourceHandler resourceHandler, @Nonnull ResourceBundleReader resourceBundleReader)
@Nonnull public Collection<ResourceBundle> load(@Nonnull String name)
@Nonnull protected Class<?> loadClass(String className) throws ClassNotFoundException
ClassNotFoundException
@Nonnull protected ResourceBundle newInstance(Class<?> klass) throws IllegalAccessException, InstantiationException