public abstract class ClassLoaderUtils extends Object
Constructor and Description |
---|
ClassLoaderUtils() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
getAllowedProtocols() |
static URL |
getResourceURL(IScopeProvider scopeProvider,
String resource)
Get a resource-URL from a specific IConfigurationClassLoader.
|
static URL |
getResourceURL(IScopeProvider scopeProvider,
String resource,
String allowedProtocols)
Get a resource-URL from a ClassLoader, therefore the resource should not start with a leading slash
|
static URL |
getResourceURL(String resource)
Get a resource-URL directly from the ClassPath
|
static String |
nameOf(ClassLoader classLoader)
If the classLoader is derivable of IConfigurationClassLoader return the className + configurationName,
else return the className of the object.
|
public static URL getResourceURL(String resource)
resource
- name of the resource you are trying to fetch the URL frompublic static URL getResourceURL(IScopeProvider scopeProvider, String resource)
IbisContext.init()
public static URL getResourceURL(IScopeProvider scopeProvider, String resource, String allowedProtocols)
scopeProvider
- to retrieve the file from, or NULL when you want to retrieve the resource directly from the ClassPath (using an absolute path)resource
- name of the resource you are trying to fetch the URL frompublic static String nameOf(ClassLoader classLoader)
Copyright © 2023 Frank!Framework. All rights reserved.