Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d1851c7
Add<TParamSqlValid>: Add annotation for application to check whether …
TalexDreamSoul Jul 10, 2022
5ba2d10
Upd<TParamSqlValid>: Update annotation for custom validate field
TalexDreamSoul Jul 10, 2022
7bb6740
Fix<ConfigAdapter>: logout instance return error
TalexDreamSoul Jul 17, 2022
99305cb
Fix<Mysql>: Fix disconnect logic (Set status in advance cause data co…
TalexDreamSoul Jul 19, 2022
cc3dc7f
Change<Frame>: For couldn't stop frame properly, add some debug log
TalexDreamSoul Jul 19, 2022
509e055
Change<RouterMatch>: Quote tire, waiting for next canary version, for…
TalexDreamSoul Jul 20, 2022
cb4a9ae
Change<Frame>: Trim plug-in system, transposing partial implementatio…
TalexDreamSoul Jul 26, 2022
705737d
Upd<README>: Update README, english version waiting
TalexDreamSoul Jul 26, 2022
9060eeb
@initial 7.0.0-official
TalexDreamSoul Jul 26, 2022
ff550f1
Merge branch 'main' into develop
TalexDreamSoul Jul 26, 2022
cd90505
Change<Project>: param validate addon field (msg) & with events & wit…
TalexDreamSoul Aug 3, 2022
e2ee40f
Change<Project>: param validate addon field (msg) & with events & wit…
TalexDreamSoul Aug 3, 2022
5cddde2
Merge remote-tracking branch 'coding-ends/develop'
TalexDreamSoul Aug 3, 2022
ed6b400
Merge branch 'main' into develop
TalexDreamSoul Aug 3, 2022
e3d8164
Fix<MaxValueValidate>: forget!!
TalexDreamSoul Aug 3, 2022
b13aa7f
Revert "Fix<MaxValueValidate>: forget!!"
TalexDreamSoul Aug 3, 2022
575cf2e
Add<TParamSqlValid>: Add annotation for application to check whether …
TalexDreamSoul Jul 10, 2022
1fdc01c
Change<Frame>: For couldn't stop frame properly, add some debug log
TalexDreamSoul Jul 19, 2022
a1ab122
Change<RouterMatch>: Quote tire, waiting for next canary version, for…
TalexDreamSoul Jul 20, 2022
127dc04
Upd<README>: Update README, english version waiting
TalexDreamSoul Jul 26, 2022
08973f3
@initial 7.0.0-official
TalexDreamSoul Jul 26, 2022
ff4fa3f
Revert "Revert "Fix<MaxValueValidate>: forget!!""
TalexDreamSoul Aug 3, 2022
33babcc
Create hs_err_pid55916.log
TalexDreamSoul Aug 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ TalexFrame 简称 TF,是一款用于构建系统性后端的 Java 转换式框

而我们所提供的基于模块的功能甚至能强于 SpringBoot 本身

## 系统设计

系统大体分为 3 个核心模块,各模块功能分别为:

- Launcher: 框架整体的启动逻辑,包括环境判断等,引导到 core 的启动
- Core: 框架的整体核心
- Checker: 框架的活性,耗能判断,包括对整体接收度的引领
Expand All @@ -51,6 +55,25 @@ TalexFrame 简称 TF,是一款用于构建系统性后端的 Java 转换式框
TalexFrame 通过 Talexs 系列生态,为您提供全栈解决方案,在不同应用场景中实现代码统一化,项目系统化,应用集成化。目前,根据您的需求场景,您可以将 TalexFrame 用于不同的场景:

- 增强型 SpringBoot 后端 (通过 talex-spring-boot-strater 使用)
- 修复型 Game 后台 (通过 TalexFrame + TGameAddon使用)
- 转换型 AllStack 服务器 (通过完全引用 TalexFrame 使用)

针对不同应用场景,从上至下复杂度递增。除此之外,addon比plugin更加重量,这将在后续章节中逐步介绍。

## 项目优势

### 管理者

- 项目审核更有保障,选型更有参考
- 系列生态集成更容易,转换数据自处理
- 自然学习分配,自动调用转换

### 开发者

- 一站式开箱即用,多种场景满足不同需求
- 前后端代码同步,部署更方便审查更容易
- 知名框架运行时,并发和稳定性更有保障
- 熟悉风格一键换,支持不同框架编写风格

### 学习者

Expand Down
810 changes: 810 additions & 0 deletions hs_err_pid55916.log

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ public void doLogout(String loginType, Object loginId, String tokenValue) {
@Override
public void doKickout(String loginType, Object loginId, String tokenValue) {

TFrame.tframe.callEvent(new SaPostLogoutEvent(loginType, loginId, tokenValue));
TFrame.tframe.callEvent(new SaKickLogoutEvent(loginType, loginId, tokenValue));

}

/** 每次被顶下线时触发 */
@Override
public void doReplaced(String loginType, Object loginId, String tokenValue) {

TFrame.tframe.callEvent(new SaPostLogoutEvent(loginType, loginId, tokenValue));
TFrame.tframe.callEvent(new SaPostReplacedOutEvent(loginType, loginId, tokenValue));

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.talexframe.frame.core.modules.repository.TRepo;
import com.talexframe.frame.core.modules.repository.TRepoManager;
import com.talexframe.frame.core.pojo.mapper.frame.FrameSender;
import com.talexframe.frame.core.talex.FrameCreator;
import com.talexframe.frame.core.talex.TFrame;
import lombok.Getter;
Expand All @@ -17,7 +16,7 @@
public abstract class TApp extends FrameCreator {

protected final TFrame tframe = TFrame.tframe;
protected FrameSender frameSender = tframe.getFrameSender();

protected TAppManager controllerManager = tframe.getAppManager();
protected TRepoManager repositoryManager = tframe.getRepoManager();
protected TRepo repo;
Expand Down Expand Up @@ -45,6 +44,10 @@ public String getDefaultPath() {

}

/**
* Use getRepo().getProvider() instead, because of single responsibility
*/
@Deprecated
public String getTableName() {

return this.repo.getProvider();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.talexframe.frame.core.modules.plugins.core.WebPlugin;
import com.talexframe.frame.core.modules.repository.TRepoPlus;
import com.talexframe.frame.core.modules.repository.TRepo;
import com.talexframe.frame.core.pojo.mapper.frame.FramePluginSender;
import com.talexframe.frame.core.talex.TFrame;
import lombok.Getter;

Expand All @@ -22,6 +23,8 @@ public class TAppPlus<T extends TRepoPlus<?>> extends TApp {
* 如果使用的是 TAppPlus 那么应该调用这个 repo
*/
protected T asRepository;
protected FramePluginSender logger;

private Class<T> templateData;

/**
Expand All @@ -34,6 +37,7 @@ public TAppPlus(String provider, WebPlugin webPlugin) {
super(provider);

this.ownPlugin = webPlugin;
this.logger = webPlugin.getConsoleSender();

}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.talexframe.frame.core.modules.event.events.plugin;

import com.talexframe.frame.core.modules.event.service.TalexEvent;
import com.talexframe.frame.core.modules.plugins.core.WebPlugin;
import lombok.Getter;

/**
* {@link com.talexframe.frame.core.modules.event.events.plugin Package }
*
* @author TalexDreamSoul 22/08/01 下午 03:13 Project: TalexFrame
*/
public class WebPluginDisabledEvent extends TalexEvent {

@Getter
private final WebPlugin plugin;

public WebPluginDisabledEvent(WebPlugin plugin) {

this.plugin = plugin;

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.talexframe.frame.core.modules.event.events.plugin;

import com.talexframe.frame.core.modules.event.service.TalexEvent;
import com.talexframe.frame.core.modules.plugins.core.WebPlugin;
import lombok.Getter;

/**
* {@link com.talexframe.frame.core.modules.event.events.plugin Package }
*
* @author TalexDreamSoul 22/08/01 下午 03:18 Project: TalexFrame
*/
public class WebPluginPreDisableEvent extends TalexEvent {

@Getter
private final WebPlugin plugin;

public WebPluginPreDisableEvent(WebPlugin plugin) {

this.plugin = plugin;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.talexframe.frame.core.modules.event.events.plugin;

import com.talexframe.frame.core.modules.event.service.TalexEvent;
import com.talexframe.frame.core.modules.plugins.core.WebPlugin;
import lombok.Getter;

/**
* {@link com.talexframe.frame.core.modules.event.events.plugin Package }
*
* @author TalexDreamSoul 22/08/01 下午 02:58 Project: TalexFrame
*/
public class WebPluginPreScanEvent extends TalexEvent {

@Getter
private final WebPlugin plugin;

public WebPluginPreScanEvent(WebPlugin plugin) {

this.plugin = plugin;

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.talexframe.frame.core.modules.event.events.plugin;

import com.talexframe.frame.core.modules.event.service.TalexEvent;
import com.talexframe.frame.core.modules.plugins.core.WebPlugin;
import lombok.Getter;

/**
* {@link com.talexframe.frame.core.modules.event.events.plugin Package }
*
* @author TalexDreamSoul 22/08/01 下午 03:13 Project: TalexFrame
*/
public class WebPluginScannedEvent extends TalexEvent {

@Getter
private final WebPlugin plugin;

public WebPluginScannedEvent(WebPlugin plugin) {

this.plugin = plugin;

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import javax.servlet.http.HttpServletResponse;

/**
* 在建立请求之后 (interceptor post handle request) 如果取消则不会进入插件处理阶段 <br /> {@link com.talexframe.frame.function.event.events.request
* 在建立请求之后 (interceptor post handle request) 如果取消则不会进入插件处理阶段 <br /> {@link com.talexframe.frame.core.modules.event.events.request
* Package }
*
* @author TalexDreamSoul
* @date 2022/1/20 19:23 <br /> Project: TalexFrame <br />
* 2022/08/01 02:55:40 <br /> Project: TalexFrame <br />
*/
public class PostHandleRequest extends TalexEvent {
public class PostHandleRequestEvent extends TalexEvent {

@Getter
private final BodyCopyHttpServletRequestWrapper request;
Expand All @@ -28,7 +28,7 @@ public class PostHandleRequest extends TalexEvent {
@Getter
private final ModelAndView modelAndView;

public PostHandleRequest(BodyCopyHttpServletRequestWrapper request, HttpServletResponse response, Object handler, ModelAndView modelAndView) {
public PostHandleRequestEvent(BodyCopyHttpServletRequestWrapper request, HttpServletResponse response, Object handler, ModelAndView modelAndView) {

this.request = request;
this.response = response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ClassReceiverManager {
@Getter
private final TrieRouter tireRouter = new TrieRouter();

private AntPathMatcher antPathMatcher = new AntPathMatcher();
private final AntPathMatcher antPathMatcher = new AntPathMatcher();

private ClassReceiverManager() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import com.talexframe.frame.core.modules.network.connection.app.addon.param.valid.max.value.ReceiverMaxValueValidateAddon;
import com.talexframe.frame.core.modules.network.connection.app.addon.param.valid.min.length.ReceiverMinLengthValidateAddon;
import com.talexframe.frame.core.modules.network.connection.app.addon.param.valid.min.value.ReceiverMinValueValidateAddon;
import com.talexframe.frame.core.modules.network.connection.app.addon.param.valid.nonull.ReceiverNoNullValidateAddon;
import com.talexframe.frame.core.modules.network.connection.app.addon.param.valid.pattern.ReceiverPatternValidateAddon;
import com.talexframe.frame.core.modules.network.connection.app.addon.param.valid.sql.ReceiverParamSqlValidateAddon;
import com.talexframe.frame.core.modules.network.connection.app.addon.permission.ReceiverPermissionAddon;
Expand Down Expand Up @@ -57,7 +56,6 @@ public ReceiverAddonAdapter() {
register(new ReceiverCacheRedisAddon());

register(new ReceiverPatternValidateAddon());
register(new ReceiverNoNullValidateAddon());
register(new ReceiverAssertValidateAddon());
register(new ReceiverMaxLengthValidateAddon());
register(new ReceiverMaxValueValidateAddon());
Expand Down
Loading