Package jadex.platform.service.library
Class ChangeableURLClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- jadex.platform.service.library.ChangeableURLClassLoader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ChangeableURLClassLoader extends java.net.URLClassLoader
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.net.URL>
urls
The url list.
-
Constructor Summary
Constructors Constructor Description ChangeableURLClassLoader(java.net.URL[] urls)
Create a new classloader.ChangeableURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
Create a new classloader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addURL(java.net.URL url)
Add a url.java.net.URL[]
getURLs()
Get the urls.void
removeURL(java.net.URL url)
Remove a url.java.lang.String
toString()
-
Methods inherited from class java.net.URLClassLoader
close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, newInstance, newInstance
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Method Detail
-
addURL
public void addURL(java.net.URL url)
Add a url.- Overrides:
addURL
in classjava.net.URLClassLoader
- Parameters:
url
- The url.
-
removeURL
public void removeURL(java.net.URL url)
Remove a url.- Parameters:
url
- The url.
-
getURLs
public java.net.URL[] getURLs()
Get the urls.- Overrides:
getURLs
in classjava.net.URLClassLoader
- Returns:
- The urls.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-