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 void
checkWithinObserverNotification()
Checks that this event is currently being delivered to an extension.protected javax.enterprise.inject.spi.Extension
getReceiver()
void
postNotify(javax.enterprise.inject.spi.Extension extension)
void
preNotify(javax.enterprise.inject.spi.Extension extension)
-
-
-
Method Detail
-
preNotify
public void preNotify(javax.enterprise.inject.spi.Extension extension)
- Specified by:
preNotify
in interfaceNotificationListener
-
postNotify
public void postNotify(javax.enterprise.inject.spi.Extension extension)
- Specified by:
postNotify
in interfaceNotificationListener
-
getReceiver
protected javax.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
-
-