@Named(value="class") public class ClassResourceBundleLoader extends AbstractResourceBundleLoader
Modifier and Type | Field and Description |
---|---|
protected static java.lang.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 |
---|---|
java.util.Collection<java.util.ResourceBundle> |
load(java.lang.String name) |
protected java.lang.Class<?> |
loadClass(java.lang.String className) |
protected java.util.ResourceBundle |
newInstance(java.lang.Class<?> klass) |
getResourceAsURL, getResourceHandler, getResources
protected static final java.lang.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 java.util.Collection<java.util.ResourceBundle> load(@Nonnull java.lang.String name)
@Nonnull protected java.lang.Class<?> loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
@Nonnull protected java.util.ResourceBundle newInstance(java.lang.Class<?> klass) throws java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.InstantiationException