Skip to content

Instantly share code, notes, and snippets.

View cattyngmd's full-sized avatar
🤑
mioclient LLC

cattyn cattyngmd

🤑
mioclient LLC
View GitHub Profile
@cattyngmd
cattyngmd / EventBus.java
Last active August 20, 2022 23:00
java simple and lightweight eventbus
package wtf.cattyn.catbus;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;