Class BruteLoader
java.lang.Object
ml.karmaconfigs.api.common.karma.loader.BruteLoader
Brute source loader
This new way of loading sources to the project class
path export all the modules to all the modules
"ExportAllToAll" using BurningWave utility class.
That way, there's no need to create any class loader
nor bootstrap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTries to add the specified source to the application classpathbooleanTries to add the specified source to the application classpathbooleanTries to add the specified source to the application classpathvoiddownloadAndInject(URL downloadURL, NameComponent name)Download and then inject the result into the APIGet the used class loader
-
Constructor Details
-
BruteLoader
Initialize the brute loader- Parameters:
ucl- the main class loader
-
-
Method Details
-
downloadAndInject
Download and then inject the result into the API- Parameters:
downloadURL- the source download URLname- the source name, useNameComponent.forFile(CharSequence, String, String...)
-
add
Tries to add the specified source to the application classpath- Parameters:
source- the source to add- Returns:
- if the source could be added
-
add
Tries to add the specified source to the application classpath- Parameters:
source- the source to add- Returns:
- if the source could be added
-
add
Tries to add the specified source to the application classpath- Parameters:
source- the source to add- Returns:
- if the source could be added
-
getLoader
Get the used class loader- Returns:
- the class loader
-