Move ServiceHelper.kt into internal package

This commit is contained in:
Him188 2020-09-01 22:42:48 +08:00
parent fe27312421
commit fdc6ef8a35
3 changed files with 6 additions and 5 deletions

View File

@ -15,11 +15,11 @@ import kotlinx.coroutines.ensureActive
import net.mamoe.mirai.console.MiraiConsole
import net.mamoe.mirai.console.data.PluginDataStorage
import net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge
import net.mamoe.mirai.console.internal.util.ServiceHelper.findServices
import net.mamoe.mirai.console.internal.util.ServiceHelper.loadAllServices
import net.mamoe.mirai.console.plugin.AbstractFilePluginLoader
import net.mamoe.mirai.console.plugin.PluginLoadException
import net.mamoe.mirai.console.plugin.jvm.*
import net.mamoe.mirai.console.util.ServiceHelper.findServices
import net.mamoe.mirai.console.util.ServiceHelper.loadAllServices
import net.mamoe.mirai.console.util.childScope
import net.mamoe.mirai.utils.MiraiLogger
import net.mamoe.mirai.utils.info

View File

@ -17,13 +17,13 @@ import kotlinx.coroutines.Job
import net.mamoe.mirai.console.MiraiConsole
import net.mamoe.mirai.console.internal.data.cast
import net.mamoe.mirai.console.internal.data.mkdir
import net.mamoe.mirai.console.internal.util.ServiceHelper.findServices
import net.mamoe.mirai.console.internal.util.ServiceHelper.loadAllServices
import net.mamoe.mirai.console.plugin.*
import net.mamoe.mirai.console.plugin.description.PluginDependency
import net.mamoe.mirai.console.plugin.description.PluginDescription
import net.mamoe.mirai.console.plugin.description.PluginKind
import net.mamoe.mirai.console.plugin.jvm.JvmPlugin
import net.mamoe.mirai.console.util.ServiceHelper.findServices
import net.mamoe.mirai.console.util.ServiceHelper.loadAllServices
import net.mamoe.mirai.console.util.childScope
import net.mamoe.mirai.utils.info
import java.io.File

View File

@ -7,13 +7,14 @@
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
package net.mamoe.mirai.console.util
package net.mamoe.mirai.console.internal.util
import net.mamoe.mirai.console.internal.data.cast
import net.mamoe.mirai.console.internal.data.createInstanceOrNull
import java.io.InputStream
import kotlin.reflect.KClass
@Suppress("unused")
internal class ServiceList<T>(
internal val classLoader: ClassLoader,
internal val delegate: List<String>