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
public abstract class ContainerEvent extends Object implements NotificationListener
Marker for lifecycle events dispatched by the Weld container.- Author:
- Jozef Hartinger
-
-
Constructor Summary
Constructors Constructor Description ContainerEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckWithinObserverNotification()Checks that this event is currently being delivered to an extension.protected ExtensiongetReceiver()voidpostNotify(Extension extension)voidpreNotify(Extension extension)
-
-
-
Method Detail
-
preNotify
public void preNotify(Extension extension)
- Specified by:
preNotifyin interfaceNotificationListener
-
postNotify
public void postNotify(Extension extension)
- Specified by:
postNotifyin interfaceNotificationListener
-
getReceiver
protected 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
-
-