Introduced compile-time generated event listeners via an Annotation Processor (AP automatically generates SPI implementations) to reduce runtime reflection which will fallback to reflection path (LambdaMetafactory + MethodHandle fallback) on failure. Currently only built for instance event listeners: static listeners and direct method registrations will be implemented in the future.
The annotation processor looks for classes annotated with @CompiledEventHandlers and generates a SubscriberInvokerFactory which holds an EventSubscriberInvoker for each method.
Refactored the reflection subscriber path (EventSubscriberCompiler and EventHandlerCompiler) to follow SOLID better and improve extensibility
Update unit tests to work with the updated code
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.