@NonnullByDefault public final class LibraryLoader extends Object
MavenLibrary annotations for a class, and loads the dependency
into the classloader.| Modifier and Type | Class and Description |
|---|---|
static class |
LibraryLoader.Dependency |
| Constructor and Description |
|---|
LibraryLoader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
load(LibraryLoader.Dependency d) |
static void |
load(String groupId,
String artifactId,
String version) |
static void |
load(String groupId,
String artifactId,
String version,
String repoUrl) |
static void |
loadAll(Class<?> clazz)
Resolves all
MavenLibrary annotations on the given class. |
static void |
loadAll(Object object)
Resolves all
MavenLibrary annotations on the given object. |
public static void loadAll(Object object)
MavenLibrary annotations on the given object.object - the object to load libraries for.public static void loadAll(Class<?> clazz)
MavenLibrary annotations on the given class.clazz - the class to load libraries for.public static void load(LibraryLoader.Dependency d)
Copyright © 2022. All rights reserved.