[Rename] Event, Core 调整类名;

[Rename] DefaultEventHandlerRegistry -> DefaultHandlerRegistry;
[Rename] EventHandlerRegistry -> HandlerRegistry;
This commit is contained in:
LamGC 2021-01-01 09:54:57 +08:00
parent 1d8148f4c7
commit 8c12f17329
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ import java.util.Map;
* <p> 实现了该接口的类将允许注册事件处理方法.
* @author LamGC
*/
public interface EventHandlerRegistry {
public interface HandlerRegistry {
/**
* 注册对象中的事件处理方法.
@ -37,7 +37,7 @@ public interface EventHandlerRegistry {
/**
* 获取能处理指定事件的所有方法.
* @param event 待匹配的事件对象.
* @return 返回一个集合, 集合存储了可处理该事件的所有方法.
* @return 返回一个集合, 集合存储了可处理该事件的所有方法和它所属类的对象.
*/
Map<Method, Object> getMatchedHandlerMethod(EventObject event);

View File

@ -25,7 +25,7 @@ import java.util.concurrent.CopyOnWriteArraySet;
* 默认的事件处理注册器.
* @author LamGC
*/
public class DefaultEventHandlerRegistry implements EventHandlerRegistry {
public class DefaultHandlerRegistry implements HandlerRegistry {
private final Map<Method, Object> instanceMap = new Hashtable<>();
private final Map<Class<? extends EventObject>, Set<Method>> eventHandlerMap = new Hashtable<>();