public abstract class ContainerEvent extends Object implements NotificationListener
Constructor and Description |
---|
ContainerEvent() |
Modifier and Type | Method and 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) |
public void preNotify(javax.enterprise.inject.spi.Extension extension)
preNotify
in interface NotificationListener
public void postNotify(javax.enterprise.inject.spi.Extension extension)
postNotify
in interface NotificationListener
protected javax.enterprise.inject.spi.Extension getReceiver()
protected void checkWithinObserverNotification()
IllegalStateException
is thrown. This guarantees that methods of
container lifecycle events are not called outside of extension observer method invocations.IllegalStateException
- if this method is not called within extension observer method invocationCopyright © 2016. All rights reserved.