-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
381 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 8 additions & 14 deletions
22
.../CRUDListParamMethodParameterHandler.java → ..._param/CRUDListParamParameterHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
.../scx/ext/crud/parameter_handler/crud_list_param/CRUDListParamParameterHandlerBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package cool.scx.ext.crud.parameter_handler.crud_list_param; | ||
|
||
import cool.scx.ext.crud.CRUDListParam; | ||
import cool.scx.reflect.ParameterInfo; | ||
import cool.scx.web.parameter_handler.ParameterHandler; | ||
import cool.scx.web.parameter_handler.ParameterHandlerBuilder; | ||
|
||
public class CRUDListParamParameterHandlerBuilder implements ParameterHandlerBuilder { | ||
|
||
@Override | ||
public ParameterHandler tryBuild(ParameterInfo parameter) { | ||
if (parameter.type().getRawClass() != CRUDListParam.class) { | ||
return null; | ||
} | ||
return new CRUDListParamParameterHandler(parameter); | ||
} | ||
|
||
} |
22 changes: 8 additions & 14 deletions
22
...RUDUpdateParamMethodParameterHandler.java → ...aram/CRUDUpdateParamParameterHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
.../ext/crud/parameter_handler/crud_update_param/CRUDUpdateParamParameterHandlerBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package cool.scx.ext.crud.parameter_handler.crud_update_param; | ||
|
||
import cool.scx.ext.crud.CRUDUpdateParam; | ||
import cool.scx.reflect.ParameterInfo; | ||
import cool.scx.web.parameter_handler.ParameterHandler; | ||
import cool.scx.web.parameter_handler.ParameterHandlerBuilder; | ||
|
||
/** | ||
* a | ||
* | ||
* @author scx567888 | ||
* @version 1.10.8 | ||
*/ | ||
public final class CRUDUpdateParamParameterHandlerBuilder implements ParameterHandlerBuilder { | ||
|
||
@Override | ||
public ParameterHandler tryBuild(ParameterInfo parameter) { | ||
if (parameter.type().getRawClass() != CRUDUpdateParam.class) { | ||
return null; | ||
} | ||
return new CRUDUpdateParamParameterHandler(parameter); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
scx-web/src/main/java/cool/scx/web/parameter_handler/ParameterHandlerBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package cool.scx.web.parameter_handler; | ||
|
||
import cool.scx.reflect.ParameterInfo; | ||
|
||
/** | ||
* 参数处理器 | ||
* | ||
* @author scx567888 | ||
* @version 1.11.8 | ||
*/ | ||
public interface ParameterHandlerBuilder { | ||
|
||
/** | ||
* 判断是否可以处理这个参数类型 返回 null 不支持 | ||
* | ||
* @param parameter 参数实例 | ||
* @return 参数处理器 (为 null 表示不支持) | ||
*/ | ||
ParameterHandler tryBuild(ParameterInfo parameter); | ||
|
||
} |
24 changes: 0 additions & 24 deletions
24
scx-web/src/main/java/cool/scx/web/parameter_handler/RoutingContextParameterHandler.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.