@Override protected void postNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).postNotify((Extension) receiver); } }
@Override protected void preNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).preNotify((Extension) receiver); } }
@Override public void notify(T event) { if (beanManager == null || extension == null) { throw WeldSELogger.LOG.containerLifecycleObserverNotInitialized(toString()); } if (event instanceof NotificationListener) { NotificationListener.class.cast(event).preNotify(extension); } try { if (callbackWithBeanManager != null) { callbackWithBeanManager.accept(event, beanManager); } else { callback.accept(event); } } finally { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).postNotify(null); } } }
@Override public void notify(T event) { if (beanManager == null || extension == null) { throw WeldSELogger.LOG.containerLifecycleObserverNotInitialized(toString()); } if (event instanceof NotificationListener) { NotificationListener.class.cast(event).preNotify(extension); } try { if (callbackWithBeanManager != null) { callbackWithBeanManager.accept(event, beanManager); } else { callback.accept(event); } } finally { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).postNotify(null); } } }
@Override public void notify(T event) { if (beanManager == null || extension == null) { throw WeldSELogger.LOG.containerLifecycleObserverNotInitialized(toString()); } if (event instanceof NotificationListener) { NotificationListener.class.cast(event).preNotify(extension); } try { if (callbackWithBeanManager != null) { callbackWithBeanManager.accept(event, beanManager); } else { callback.accept(event); } } finally { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).postNotify(null); } } }
@Override protected void preNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).preNotify((Extension) receiver); } }
@Override protected void postNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).postNotify((Extension) receiver); } }
@Override protected void preNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).preNotify((Extension) receiver); } }
@Override protected void postNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).postNotify((Extension) receiver); } }
@Override protected void preNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).preNotify((Extension) receiver); } }
@Override protected void postNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).postNotify((Extension) receiver); } }
@Override protected void preNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).preNotify((Extension) receiver); } }
@Override protected void postNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).postNotify((Extension) receiver); } }
@Override protected void preNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).preNotify((Extension) receiver); } }
@Override protected void postNotify(T event, Object receiver) { if (event instanceof NotificationListener) { NotificationListener.class.cast(event).postNotify((Extension) receiver); } }