Class PluginRegistry.URLClassloaderPrivilegedAction
- java.lang.Object
-
- de.aristaflow.adept2.base.registry.PluginRegistry.URLClassloaderPrivilegedAction
-
- All Implemented Interfaces:
PrivilegedAction<URLClassLoader>
- Enclosing class:
- PluginRegistry
protected final class PluginRegistry.URLClassloaderPrivilegedAction extends Object implements PrivilegedAction<URLClassLoader>
A simple implementation of a privileged action that returns a normalURLClassLoaderclassloader with the provided URLs as classpath.- Author:
- Ulrich Kreher
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedURLClassloaderPrivilegedAction(URL[] urlClassPaths, boolean hasParent, boolean preferOwn)Simple constructor that sets the URLs of the created class loader.
-
-
-
Constructor Detail
-
URLClassloaderPrivilegedAction
protected URLClassloaderPrivilegedAction(URL[] urlClassPaths, boolean hasParent, boolean preferOwn)
Simple constructor that sets the URLs of the created class loader.- Parameters:
urlClassPaths- The class paths for the created classloader.hasParent- Whether the created classloader should have the classloader of thePluginRegistryas parent classloader or no parent classloader at all (null).preferOwn- Whether the created classloader prefer its own class paths to the parent class paths. This is only relevant for a classloader having a parent.
-
-
Method Detail
-
run
public URLClassLoader run()
- Specified by:
runin interfacePrivilegedAction<URLClassLoader>
-
-