Class BeanEvent<T>

Type Parameters:
T - The event type
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BeanCreatedEvent, BeanDestroyedEvent, BeanInitializingEvent, BeanPreDestroyEvent

public abstract class BeanEvent<T> extends BeanContextEvent
An abstract bean event.
Since:
1.0
Author:
Graeme Rocher
See Also:
  • Field Details

    • beanDefinition

      protected final BeanDefinition<T> beanDefinition
    • bean

      protected final T bean
  • Constructor Details

    • BeanEvent

      public BeanEvent(BeanContext beanContext, BeanDefinition<T> beanDefinition, T bean)
      Parameters:
      beanContext - The bean context
      beanDefinition - The bean definition
      bean - The bean
  • Method Details

    • getBean

      public T getBean()
      Returns:
      The bean that was created
    • getBeanDefinition

      public BeanDefinition<T> getBeanDefinition()
      Returns:
      The bean definition