createEventInvoker

private fun createEventInvoker(method: Method): EventInvoker

Creates an EventInvoker for the given handler method.

Uses LambdaMetafactory to generate a high-performance lambda when possible. If generation fails, falls back to reflective invocation and logs the failure.

Return

a compiled or reflective invoker that calls the handler.

Parameters

method

the handler method for which an invoker is created.