ソースを参照

controllerKey 改为 controllerPath

James 5 年 前
コミット
76edaa28fc
1 ファイル変更12 行追加4 行削除
  1. 12 4
      src/main/java/com/jfinal/core/Action.java

+ 12 - 4
src/main/java/com/jfinal/core/Action.java

@@ -27,7 +27,7 @@ import com.jfinal.core.paragetter.ParaProcessorBuilder;
 public class Action {
 	
 	private final Class<? extends Controller> controllerClass;
-	private final String controllerKey;
+	private final String controllerPath;
 	private final String actionKey;
 	private final Method method;
 	private final String methodName;
@@ -36,8 +36,8 @@ public class Action {
 	
 	private final ParaProcessor parameterGetter;
 	
-	public Action(String controllerKey, String actionKey, Class<? extends Controller> controllerClass, Method method, String methodName, Interceptor[] interceptors, String viewPath) {
-		this.controllerKey = controllerKey;
+	public Action(String controllerPath, String actionKey, Class<? extends Controller> controllerClass, Method method, String methodName, Interceptor[] interceptors, String viewPath) {
+		this.controllerPath = controllerPath;
 		this.actionKey = actionKey;
 		this.controllerClass = controllerClass;
 		this.method = method;
@@ -52,8 +52,16 @@ public class Action {
 		return controllerClass;
 	}
 	
+	public String getControllerPath() {
+		return controllerPath;
+	}
+	
+	/**
+	 * 该方法已被改名为 getControllerPath()
+	 */
+	@Deprecated
 	public String getControllerKey() {
-		return controllerKey;
+		return controllerPath;
 	}
 	
 	public String getActionKey() {