Package io.micronaut.context.event
Class BeanCreatedEvent<T>
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.context.event.BeanContextEvent
io.micronaut.context.event.BeanEvent<T>
io.micronaut.context.event.BeanCreatedEvent<T>
- Type Parameters:
T
- The event type
- All Implemented Interfaces:
Serializable
An event fired when a bean is created and fully initialized.
- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Field Summary
Fields inherited from class io.micronaut.context.event.BeanEvent
bean, beanDefinition
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionBeanCreatedEvent
(BeanContext beanContext, BeanDefinition<T> beanDefinition, BeanIdentifier beanIdentifier, T bean) -
Method Summary
Methods inherited from class io.micronaut.context.event.BeanEvent
getBean, getBeanDefinition
Methods inherited from class io.micronaut.context.event.BeanContextEvent
getSource
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
BeanCreatedEvent
public BeanCreatedEvent(BeanContext beanContext, BeanDefinition<T> beanDefinition, BeanIdentifier beanIdentifier, T bean) - Parameters:
beanContext
- The bean contextbeanDefinition
- The bean definitionbeanIdentifier
- The bean identifierbean
- The bean
-
-
Method Details
-
getBeanIdentifier
- Returns:
- The bean identifier used to create the bean
-