Class KarmaSourceLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
ml.karmaconfigs.api.common.karma.loader.KarmaSourceLoader
- All Implemented Interfaces:
Closeable,AutoCloseable
Deprecated.
Karma source loader
-
Constructor Summary
ConstructorsConstructorDescriptionKarmaSourceLoader(ClassLoader currentLoader, File subJar)Deprecated.Initialize the source loaderKarmaSourceLoader(ClassLoader currentLoader, URL subJar)Deprecated.Initialize the source loaderKarmaSourceLoader(ClassLoader currentLoader, Path subJar)Deprecated.Initialize the source loader -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJarToClasspath(URL url)Deprecated.Add a source to the current pathvoidDeprecated.Close this source loadervoidDeprecated.Delete the jar sources file<T> SourceBootstrapinstantiate(String bootstrapClass)Deprecated.Instantiate the bootstrap class<T> SourceBootstrapinstantiate(String bootstrapClass, Class<T> loaderPluginType, T loaderPlugin)Deprecated.Instantiate the bootstrap classMethods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstanceMethods inherited from class java.security.SecureClassLoader
defineClass, defineClassMethods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
KarmaSourceLoader
Deprecated.Initialize the source loader- Parameters:
currentLoader- the current class loadersubJar- the jar containing bootstrap sources
-
KarmaSourceLoader
Deprecated.Initialize the source loader- Parameters:
currentLoader- the current class loadersubJar- the jar containing bootstrap sources- Throws:
IOException- if something goes wrong
-
KarmaSourceLoader
Deprecated.Initialize the source loader- Parameters:
currentLoader- the current class loadersubJar- the jar containing bootstrap sources- Throws:
IOException- if something goes wrong
-
-
Method Details
-
addJarToClasspath
Deprecated.Add a source to the current path- Parameters:
url- the source file url
-
deleteJarResource
public void deleteJarResource()Deprecated.Delete the jar sources file -
instantiate
public <T> SourceBootstrap instantiate(String bootstrapClass, Class<T> loaderPluginType, T loaderPlugin)Deprecated.Instantiate the bootstrap class- Type Parameters:
T- the return type- Parameters:
bootstrapClass- the bootstrap classloaderPluginType- the loader typeloaderPlugin- the loader- Returns:
- the instance
-
instantiate
Deprecated.Instantiate the bootstrap class- Type Parameters:
T- the return type- Parameters:
bootstrapClass- the bootstrap class- Returns:
- the instance
-
closeLoader
public void closeLoader()Deprecated.Close this source loader
-
KarmaAppendernotice