unsubscribeStatic

inline fun <T> Bus.unsubscribeStatic()

Unregisters all static handler methods declared on the reified type T.

This is a Kotlin convenience overload of unsubscribeStatic that allows static handlers to be removed using a reified type parameter instead of explicitly passing a KClass or Class reference.

Both @EventHandler and @ExceptionHandler static methods that were previously registered for T are removed.

If the given type was not registered, this operation has no effect.

Example

bus.unsubscribeStatic<MyStaticHandlers>()

Receiver

the Bus from which the static handlers declared on T will be removed.

Parameters

T

the class whose static handler methods should be unregistered.