Skip to content

Commit 2bbbd08

Browse files
committed
Renamed plugin classloader
1 parent 84b41eb commit 2bbbd08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/src/main/kotlin/com/lambda/plugin/JarClassLoader.kt renamed to common/src/main/kotlin/com/lambda/plugin/PluginClassLoader.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package com.lambda.plugin
22

33
import java.util.jar.JarFile
44

5-
class JarClassLoader(
5+
class PluginClassLoader(
66
private val jarFile: JarFile,
77
parent: ClassLoader,
88
) : ClassLoader(parent) {

common/src/main/kotlin/com/lambda/plugin/PluginRegistry.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ object PluginRegistry : Loadable {
1414
if (file.length() == 0L) return LOG.error("The plugin $file is empty")
1515

1616
val jar = JarFile(file)
17-
val loader = JarClassLoader(jar, this::class.java.classLoader)
17+
val loader = PluginClassLoader(jar, this::class.java.classLoader)
1818
val mainClass = jar.manifest.mainAttributes.getValue("Main-Class")
1919
?: return LOG.error("The plugin $jar does not have a main class")
2020

0 commit comments

Comments
 (0)