Class ContainerEvent

    • Constructor Detail

      • ContainerEvent

        public ContainerEvent()
    • Method Detail

      • preNotify

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

        public void postNotify​(javax.enterprise.inject.spi.Extension extension)
        Specified by:
        postNotify in interface NotificationListener
      • 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