From edaf4d2ad694f3c93e42a732d08b9c15955ed26c Mon Sep 17 00:00:00 2001 From: Gravit Date: Mon, 31 Dec 2018 14:53:07 +0700 Subject: [PATCH] =?UTF-8?q?HookManager=20=D0=B2=D1=8B=D0=BD=D0=B5=D1=81?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=B2=20=D0=BF=D0=B0=D0=BA=D0=B5=D1=82=20?= =?UTF-8?q?ru.gravit.launchserver.managers.hook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/ru/gravit/launchserver/LaunchServer.java | 3 +++ .../java/ru/gravit/launchserver/binary/JARLauncherBinary.java | 2 +- .../java/ru/gravit/launchserver/manangers/NodeTransformer.java | 2 +- .../launchserver/manangers/{ => hook}/AuthHookManager.java | 2 +- .../launchserver/manangers/{ => hook}/BuildHookManager.java | 3 ++- .../launchserver/manangers/{ => hook}/SocketHookManager.java | 2 +- .../java/ru/gravit/launchserver/socket/ResponseThread.java | 2 +- 7 files changed, 10 insertions(+), 6 deletions(-) rename LaunchServer/src/main/java/ru/gravit/launchserver/manangers/{ => hook}/AuthHookManager.java (96%) rename LaunchServer/src/main/java/ru/gravit/launchserver/manangers/{ => hook}/BuildHookManager.java (98%) rename LaunchServer/src/main/java/ru/gravit/launchserver/manangers/{ => hook}/SocketHookManager.java (97%) diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java index 10cdd731..58237d2b 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java @@ -63,6 +63,9 @@ import ru.gravit.launchserver.config.PermissionsHandlerAdapter; import ru.gravit.launchserver.config.TextureProviderAdapter; import ru.gravit.launchserver.manangers.*; +import ru.gravit.launchserver.manangers.hook.AuthHookManager; +import ru.gravit.launchserver.manangers.hook.BuildHookManager; +import ru.gravit.launchserver.manangers.hook.SocketHookManager; import ru.gravit.launchserver.response.Response; import ru.gravit.launchserver.socket.ServerSocketHandler; import ru.gravit.launchserver.texture.RequestTextureProvider; diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/binary/JARLauncherBinary.java b/LaunchServer/src/main/java/ru/gravit/launchserver/binary/JARLauncherBinary.java index f785a798..17348c56 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/binary/JARLauncherBinary.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/binary/JARLauncherBinary.java @@ -32,7 +32,7 @@ import ru.gravit.launcher.serialize.HOutput; import ru.gravit.launchserver.LaunchServer; import ru.gravit.launchserver.asm.ClassMetadataReader; -import ru.gravit.launchserver.manangers.BuildHookManager.ZipBuildHook; +import ru.gravit.launchserver.manangers.hook.BuildHookManager.ZipBuildHook; import ru.gravit.utils.helper.CommonHelper; import ru.gravit.utils.helper.IOHelper; import ru.gravit.utils.helper.LogHelper; diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/NodeTransformer.java b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/NodeTransformer.java index 2b8d7a28..f90f0a1d 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/NodeTransformer.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/NodeTransformer.java @@ -9,7 +9,7 @@ import ru.gravit.launchserver.asm.SafeClassWriter; import ru.gravit.launchserver.binary.JARLauncherBinary; -import ru.gravit.launchserver.manangers.BuildHookManager.Transformer; +import ru.gravit.launchserver.manangers.hook.BuildHookManager.Transformer; public class NodeTransformer implements Transformer { @FunctionalInterface diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/AuthHookManager.java b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/hook/AuthHookManager.java similarity index 96% rename from LaunchServer/src/main/java/ru/gravit/launchserver/manangers/AuthHookManager.java rename to LaunchServer/src/main/java/ru/gravit/launchserver/manangers/hook/AuthHookManager.java index ed6c49a8..f6eb866e 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/AuthHookManager.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/hook/AuthHookManager.java @@ -1,4 +1,4 @@ -package ru.gravit.launchserver.manangers; +package ru.gravit.launchserver.manangers.hook; import ru.gravit.launchserver.response.auth.AuthResponse; import ru.gravit.launchserver.socket.Client; diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/BuildHookManager.java b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/hook/BuildHookManager.java similarity index 98% rename from LaunchServer/src/main/java/ru/gravit/launchserver/manangers/BuildHookManager.java rename to LaunchServer/src/main/java/ru/gravit/launchserver/manangers/hook/BuildHookManager.java index 712a3478..ec84fbe1 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/BuildHookManager.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/hook/BuildHookManager.java @@ -1,4 +1,4 @@ -package ru.gravit.launchserver.manangers; +package ru.gravit.launchserver.manangers.hook; import java.util.HashMap; import java.util.HashSet; @@ -11,6 +11,7 @@ import ru.gravit.launchserver.binary.BuildContext; import ru.gravit.launchserver.binary.JAConfigurator; import ru.gravit.launchserver.binary.JARLauncherBinary; +import ru.gravit.launchserver.manangers.NodeTransformer; public class BuildHookManager { @FunctionalInterface diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/SocketHookManager.java b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/hook/SocketHookManager.java similarity index 97% rename from LaunchServer/src/main/java/ru/gravit/launchserver/manangers/SocketHookManager.java rename to LaunchServer/src/main/java/ru/gravit/launchserver/manangers/hook/SocketHookManager.java index d032fa08..fb9b6c38 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/SocketHookManager.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/hook/SocketHookManager.java @@ -1,4 +1,4 @@ -package ru.gravit.launchserver.manangers; +package ru.gravit.launchserver.manangers.hook; import ru.gravit.launcher.request.RequestException; import ru.gravit.launchserver.socket.SocketContext; diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/socket/ResponseThread.java b/LaunchServer/src/main/java/ru/gravit/launchserver/socket/ResponseThread.java index c222ecf0..027b5ab1 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/socket/ResponseThread.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/socket/ResponseThread.java @@ -11,7 +11,7 @@ import ru.gravit.launcher.serialize.HOutput; import ru.gravit.launchserver.LaunchServer; import ru.gravit.launchserver.manangers.SessionManager; -import ru.gravit.launchserver.manangers.SocketHookManager; +import ru.gravit.launchserver.manangers.hook.SocketHookManager; import ru.gravit.launchserver.response.Response; import ru.gravit.utils.helper.IOHelper; import ru.gravit.utils.helper.LogHelper;