public class MessagesClassLoader extends URLClassLoader
This class offers a class loader which is able to load files from the specified directories.
Constructor and Description |
---|
MessagesClassLoader(URL[] urls)
Creates a new class loader, which is able to load files from the directories
specified as parameter.
|
Modifier and Type | Method and Description |
---|---|
URL |
getResource(String res)
Loads a resource using the specified file name.
|
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public MessagesClassLoader(URL[] urls)
Creates a new class loader, which is able to load files from the directories specified as parameter.
urls
- The list of directories which will be used to load files.public URL getResource(String res)
getResource
in class ClassLoader
res
- The name of the resource to be loaded.