Class ContainerEvent

java.lang.Object
org.jboss.weld.bootstrap.events.ContainerEvent
All Implemented Interfaces:
NotificationListener
Direct Known Subclasses:
AbstractContainerEvent, ProcessAnnotatedTypeImpl

public abstract class ContainerEvent extends Object implements NotificationListener
Marker for lifecycle events dispatched by the Weld container.
Author:
Jozef Hartinger
  • Constructor Details

    • ContainerEvent

      public ContainerEvent()
  • Method Details

    • preNotify

      public void preNotify(jakarta.enterprise.inject.spi.Extension extension)
      Specified by:
      preNotify in interface NotificationListener
    • postNotify

      public void postNotify(jakarta.enterprise.inject.spi.Extension extension)
      Specified by:
      postNotify in interface NotificationListener
    • getReceiver

      protected jakarta.enterprise.inject.spi.Extension getReceiver()
    • checkWithinObserverNotification

      protected void checkWithinObserverNotification()
      Checks that this event is currently being delivered to an extension. Otherwise, IllegalStateException is thrown. This guarantees that methods of container lifecycle events are not called outside of extension observer method invocations.
      Throws:
      IllegalStateException - if this method is not called within extension observer method invocation