/** * Checks that this event is currently being delivered to an extension. Otherwise, {@link 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 */ protected void checkWithinObserverNotification() { if (receiver == null) { throw BootstrapLogger.LOG.containerLifecycleEventMethodInvokedOutsideObserver(); } } }
/** * Checks that this event is currently being delivered to an extension. Otherwise, {@link 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 */ protected void checkWithinObserverNotification() { if (receiver == null) { throw BootstrapLogger.LOG.containerLifecycleEventMethodInvokedOutsideObserver(); } } }
/** * Checks that this event is currently being delivered to an extension. Otherwise, {@link 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 */ protected void checkWithinObserverNotification() { if (receiver == null) { throw BootstrapLogger.LOG.containerLifecycleEventMethodInvokedOutsideObserver(); } } }
/** * Checks that this event is currently being delivered to an extension. Otherwise, {@link 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 */ protected void checkWithinObserverNotification() { if (receiver == null) { throw BootstrapLogger.LOG.containerLifecycleEventMethodInvokedOutsideObserver(); } } }
/** * Checks that this event is currently being delivered to an extension. Otherwise, {@link 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 */ protected void checkWithinObserverNotification() { if (receiver == null) { throw BootstrapLogger.LOG.containerLifecycleEventMethodInvokedOutsideObserver(); } } }
/** * Checks that this event is currently being delivered to an extension. Otherwise, {@link 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 */ protected void checkWithinObserverNotification() { if (receiver == null) { throw BootstrapLogger.LOG.containerLifecycleEventMethodInvokedOutsideObserver(); } } }