public class ModuleUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOT_JAR |
static java.lang.String |
DOT_ZIP |
Constructor and Description |
---|
ModuleUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.ClassLoader |
createModuleClassLoader(org.springframework.core.io.Resource moduleLocation,
java.lang.ClassLoader parent) |
static java.lang.ClassLoader |
createModuleClassLoader(org.springframework.core.io.Resource moduleLocation,
java.lang.ClassLoader parent,
boolean includeNestedJars) |
static org.springframework.core.io.Resource |
locateModuleResource(SimpleModuleDefinition definition,
java.lang.ClassLoader moduleClassLoader,
java.lang.String extension)
Return an expected module resource given a file extension.
|
static org.springframework.core.io.Resource |
modulePropertiesFile(SimpleModuleDefinition definition,
java.lang.ClassLoader moduleClassLoader)
Return a resource that can be used to load the module '.properties' file (containing e.g. information
about module options, or null if no such file exists.
|
public static final java.lang.String DOT_JAR
public static final java.lang.String DOT_ZIP
public static java.lang.ClassLoader createModuleClassLoader(org.springframework.core.io.Resource moduleLocation, java.lang.ClassLoader parent)
public static java.lang.ClassLoader createModuleClassLoader(org.springframework.core.io.Resource moduleLocation, java.lang.ClassLoader parent, boolean includeNestedJars)
public static org.springframework.core.io.Resource modulePropertiesFile(SimpleModuleDefinition definition, java.lang.ClassLoader moduleClassLoader)
public static org.springframework.core.io.Resource locateModuleResource(SimpleModuleDefinition definition, java.lang.ClassLoader moduleClassLoader, java.lang.String extension)