Class PluginRegistry.URLClassloaderPrivilegedAction
java.lang.Object
de.aristaflow.adept2.base.registry.PluginRegistry.URLClassloaderPrivilegedAction
- All Implemented Interfaces:
PrivilegedAction<URLClassLoader>
- Enclosing class:
- PluginRegistry
@Deprecated(since="17.0.0",
forRemoval=true)
protected final class PluginRegistry.URLClassloaderPrivilegedAction
extends Object
implements PrivilegedAction<URLClassLoader>
Deprecated, for removal: This API element is subject to removal in a future version.
The security manager has been deprecated and removed. This class is no longer of use,
just perform the action directly.
A simple implementation of a privileged action that returns a normal
URLClassLoader classloader with the provided URLs as classpath.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedURLClassloaderPrivilegedAction(URL[] urlClassPaths, boolean hasParent, boolean preferOwn) Deprecated, for removal: This API element is subject to removal in a future version.Simple constructor that sets the URLs of the created class loader. -
Method Summary
Modifier and TypeMethodDescriptionrun()Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
URLClassloaderPrivilegedAction
Deprecated, for removal: This API element is subject to removal in a future version.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 Details
-
run
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
runin interfacePrivilegedAction<URLClassLoader>
-