public class AddToClassPathAction extends Object implements PrivilegedAction<UDFClassLoader>
This is slightly inconvenient, but forces the caller code to make the doPriviliged call, rather than us making the call on the caller's behalf, in accordance with the security guidelines at: https://docs.oracle.com/javase/8/docs/technotes/guides/security/doprivileged.html
Constructor and Description |
---|
AddToClassPathAction(ClassLoader parentLoader,
Collection<String> newPaths) |
AddToClassPathAction(ClassLoader parentLoader,
Collection<String> newPaths,
boolean forceNewClassLoader) |
public AddToClassPathAction(ClassLoader parentLoader, Collection<String> newPaths, boolean forceNewClassLoader)
public AddToClassPathAction(ClassLoader parentLoader, Collection<String> newPaths)
public UDFClassLoader run()
run
in interface PrivilegedAction<UDFClassLoader>
Copyright © 2021 The Apache Software Foundation. All rights reserved.