Package io.micronaut.context.event
Contains classes related to
ApplicationContext
event publishing and consuming.- Since:
- 1.0
-
Interface Summary Interface Description ApplicationEventListener<E> An interface for receivers of application events.ApplicationEventPublisher<T> Interface for classes that publish events received byApplicationEventListener
instances.BeanCreatedEventListener<T> An event listener that is triggered each time a bean is created.BeanDestroyedEventListener<T> An event listener that is triggered after a bean is destroyed.BeanInitializedEventListener<T> Allows hooking into bean instantiation at the point prior to whenPostConstruct
initialization hooks have been called and in the case of beanBeanProvider
instances theBeanProvider.get()
method has not yet been invoked.BeanPreDestroyEventListener<T> An event listener that is triggered before a bean is destroyed. -
Class Summary Class Description ApplicationEvent AnApplicationEvent
is a user specified event object.ApplicationEventPublisherFactory<T> Constructs instances ofApplicationEventPublisher
.BeanContextEvent A BeanContextEvent is an event fired from theBeanContext
instance.BeanCreatedEvent<T> An event fired when a bean is created and fully initialized.BeanDestroyedEvent<T> An event fired when a bean has been destroyed and allPreDestroy
methods have been invoked.BeanEvent<T> An abstract bean event.BeanInitializingEvent<T> An event fired when a bean's properties have been populated but initialization hooks (such asPostConstruct
methods) have not yet been triggered.BeanPreDestroyEvent<T> An event fired when a bean is about to be destroyed but before anyPreDestroy
methods are invoked..ShutdownEvent An event fired prior to starting shutdown sequence.StartupEvent An event fired once startup is complete.