public final class RuntimeResourceAccess extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addResource(Module module,
String resourcePath)
Make Java resource
resourcePath from module available at run time. |
static void |
addResource(Module module,
String resourcePath,
byte[] resourceContent)
Inject a Java resource at
resourcePath in module with the specified
resourceContent . |
static void |
addResourceBundle(Module module,
String bundleName)
Make Java ResourceBundle that is specified by a
bundleName from module module
available at run time. |
static void |
addResourceBundle(Module module,
String baseBundleName,
Locale[] locales)
Make Java ResourceBundle that is specified by a
baseBundleName and locales
from module module available at run time. |
public static void addResource(Module module, String resourcePath)
resourcePath
from module
available at run time. If the
given module
is unnamed, the resource is looked up on the classpath instead.public static void addResource(Module module, String resourcePath, byte[] resourceContent)
resourcePath
in module
with the specified
resourceContent
. At runtime the resource can be accessed as if it was part of the
original application. If the given module
is unnamed, the resource is placed on the
classpath instead.public static void addResourceBundle(Module module, String baseBundleName, Locale[] locales)
baseBundleName
and locales
from module module
available at run time. If the given module
is unnamed, the
ResourceBundle is looked up on the classpath instead.