Companion
object Companion
Holds utilities and shared logger for the event system.
Properties
Functions
Link copied to clipboard
Retrieves all declared methods from the given class, its superclasses, and interfaces.
Link copied to clipboard
Creates an EventInvoker for the given handler method.
Link copied to clipboard
Creates an ExceptionInvoker for a method annotated with @ExceptionHandler.
Link copied to clipboard
Validates whether a method qualifies as an event handler.
Link copied to clipboard
Determines whether this method is a valid @ExceptionHandler method according to the event system's rules.
Link copied to clipboard
private fun <T : Priority> sharedSubscribeLogic(methodCache: Cache<Class<out Event>, List<T>>, objectCache: Cache<Any, List<Class<out Event>>>, staticCache: Cache<Class<*>, List<Class<out Event>>>, eventClass: Class<out Event>, priority: Int, handlerEntry: T, any: Any? = null, type: Class<*>? = null)
Shared internal logic for registering both event handlers and exception handlers.
Link copied to clipboard
Computes a relative "specificity" rank for this exception handler entry.