@CompileStatic
class GrapeUtil
extends Object
Utility methods shared between GrapeIvy and GrapeMaven implementations.
| Constructor and description |
|---|
GrapeUtil() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static void |
addURL(ClassLoader loader, URI uri)Adds a URI to a classloader's classpath via reflection. |
|
static boolean |
checkForRunner(Collection<String> services) |
|
static void |
processExtensionMethods(ClassLoader loader, File file)Processes and registers category methods (extension modules) from a JAR file. |
|
static Collection<String> |
processMetaInfServices(ClassLoader loader, File f)Searches the given File for known service provider configuration files to process. |
|
static void |
processRunners(InputStream is, String name, ClassLoader loader)Processes and registers Groovy runner implementations from a service provider file. |
|
static void |
registryLoad(ClassLoader classLoader) |
Adds a URI to a classloader's classpath via reflection.
Processes and registers category methods (extension modules) from a JAR file.
loader - the classloader to register methods withfile - the JAR file to processSearches the given File for known service provider configuration files to process.
loader - used to locate service provider filesf - ZipFile in which to search for servicesProcesses and registers Groovy runner implementations from a service provider file.
is - the input stream containing runner class namesname - the name to register the runners underloader - the classloader to load runner classes fromCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.