Package org.jboss.weld.bootstrap.events
Class ContainerEvent
java.lang.Object
org.jboss.weld.bootstrap.events.ContainerEvent
- All Implemented Interfaces:
NotificationListener
- Direct Known Subclasses:
AbstractContainerEvent,ProcessAnnotatedTypeImpl
Marker for lifecycle events dispatched by the Weld container.
- Author:
- Jozef Hartinger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks that this event is currently being delivered to an extension.protected jakarta.enterprise.inject.spi.ExtensionvoidpostNotify(jakarta.enterprise.inject.spi.Extension extension) voidpreNotify(jakarta.enterprise.inject.spi.Extension extension)
-
Constructor Details
-
ContainerEvent
public ContainerEvent()
-
-
Method Details
-
preNotify
public void preNotify(jakarta.enterprise.inject.spi.Extension extension) - Specified by:
preNotifyin interfaceNotificationListener
-
postNotify
public void postNotify(jakarta.enterprise.inject.spi.Extension extension) - Specified by:
postNotifyin interfaceNotificationListener
-
getReceiver
protected jakarta.enterprise.inject.spi.Extension getReceiver() -
checkWithinObserverNotification
protected void checkWithinObserverNotification()Checks that this event is currently being delivered to an extension. Otherwise,IllegalStateExceptionis 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
-