Package io.micronaut.context.event
Class BeanEvent<T>
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.context.event.BeanContextEvent
io.micronaut.context.event.BeanEvent<T>
- Type Parameters:
T
- The event type
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BeanCreatedEvent
,BeanDestroyedEvent
,BeanInitializingEvent
,BeanPreDestroyEvent
An abstract bean event.
- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionBeanEvent
(BeanContext beanContext, BeanDefinition<T> beanDefinition, T bean) -
Method Summary
Methods inherited from class io.micronaut.context.event.BeanContextEvent
getSource
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
beanDefinition
-
bean
-
-
Constructor Details
-
BeanEvent
- Parameters:
beanContext
- The bean contextbeanDefinition
- The bean definitionbean
- The bean
-
-
Method Details
-
getBean
- Returns:
- The bean that was created
-
getBeanDefinition
- Returns:
- The bean definition
-