Package org.elasticsearch.test
Class PrivilegedOperations
java.lang.Object
org.elasticsearch.test.PrivilegedOperations
A small set of privileged operations that can be executed by unprivileged test code.
The set of operations is deliberately small, and the permissions narrow.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
closeURLClassLoader
(URLClassLoader loader) static Boolean
compilationTaskCall
(JavaCompiler.CompilationTask compilationTask) static <T> T
supplierWithCreateClassLoader
(Supplier<T> supplier)
-
Method Details
-
closeURLClassLoader
- Throws:
IOException
-
compilationTaskCall
-
supplierWithCreateClassLoader
-