EventBus.register

Registers all event handler methods on the specified instance to receive relevant events. The handler methods are determined by the {@code EventBus} implementation, typically by using an {@link hunt.shiro.event.support.EventListenerResolver EventListenerResolver} (e.g. {@link hunt.shiro.event.support.AnnotationEventListenerResolver AnnotationEventListenerResolver}).

@param subscriber the object whose event handler methods should be registered to receive events.

interface EventBus
void
register
(
Object subscriber
)

Meta