Package net.minestom.server.extensions
Class ExtensionClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
net.minestom.server.extensions.ExtensionClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionExtensionClassLoader
(String name, URL[] urls, ClassLoader parent, DiscoveredExtension discoveredExtension) ExtensionClassLoader
(String name, URL[] urls, DiscoveredExtension discoveredExtension) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(@NotNull ExtensionClassLoader loader) void
net.kyori.adventure.text.logger.slf4j.ComponentLogger
getResourceAsStreamWithChildren
(@NotNull String name) protected Class
<?> Methods inherited from class java.net.URLClassLoader
close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
Methods 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, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
ExtensionClassLoader
-
ExtensionClassLoader
public ExtensionClassLoader(String name, URL[] urls, ClassLoader parent, DiscoveredExtension discoveredExtension)
-
-
Method Details
-
addURL
- Overrides:
addURL
in classURLClassLoader
-
addChild
-
loadClass
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
getResourceAsStreamWithChildren
-
getDiscoveredExtension
-
getEventNode
-
getLogger
public net.kyori.adventure.text.logger.slf4j.ComponentLogger getLogger()
-